RE: [Rails] 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 +
'<br>' + aAddress.address1 + <br>'
    html << aAddress.address2 + "<br>" if !aAddress.address2
    html << aAddress.city + ' ' + aAddress.state + ',' +
aAddress zip
    end.join("\n")
  end

Onno