title: Rails Address Format Helper
body: <p>I am trying to create a helper that will format an address from 5 columns (add1,add2, add3,add4,add5) so that it will compact any nulls and display on screen as such</p>
  
  <pre><code>Add1,
  Add3,
  Add4,
  Add5
  </code></pre>
  
  <p>(add 2 was skipped as it was null)</p>
  
  <p>I created the following helper to assemble and skip any nulls but I can not introduce a new line break. Any ideas?</p>
  
  <pre><code>def delivery_address(customer)
  @customer =  Customer.find(customer.id) 
  
  if @customer.del_address1.blank? 
    deladdress = "No Delivery Address"
  else
  
      deladdress = @customer.del_address1 
      deladdress = deladdress + "&lt;/br&gt;"
  
    if customer.del_address2.blank?
      else 
      deladdress = deladdress + @customer.del_address2 + ","
  
    end
  
    if @customer.del_address3.blank?
      else 
      deladdress = deladdress +  @customer.del_address3 + ","
  
    end
  
    if @customer.del_address4.blank?
      else 
      deladdress = deladdress +  @customer.del_address4 + ","
  
    end
  
    if @customer.del_address5.blank?
      else 
      deladdress = deladdress +  @customer.del_address5
  
    end
  
  end
  
  end
  </code></pre>