Add model method to user.rb file.
[code language=”language="ruby”]
def full_address
[address_1, address_2, city, postal_code].map(&:presence).compact.join(‘ ,’)
end
[/code]