Re: cleaner way to write this

For this I would prefer a view helper method because I don’t like html
code in my model.

def full_address(aAddress)
returning html = [] do
html << aAddress.first_name + ’ ’ + aAddress.last_name +

’ + aAddress.address1 +

html << aAddress.address2 + “
” if !aAddress.address2
html << aAddress.city + ’ ’ + aAddress.state + ‘,’ +
aAddress zip
end.join("\n")
end

Onno