title: Rails Helpers: Add a line break to the end of a content_tag within helper method
body: <p>I have the following helper method for the <code>Contact</code> Model:</p>
  
  <pre><code>def list_offices_if_present(contact)
    if contact.locations.any?
      content_tag :span, "Works out of: #{contact.offices_list}" + tag(:br)
    end
  end
  </code></pre>
  
  <p>Here is that method definition called within that <code>content_tag</code>:</p>
  
  <pre><code>#models/contact.rb
  class Contact &lt; ActiveRecord::Base
    ...
    def offices_list
      offices_names = []
      locations.each{|location|  office_names &lt;&lt; location.office_name}
      return office_names.join(", ")
    end
  end
  </code></pre>
  
  <p>I call this helper like this:</p>
  
  <pre><code>&lt;p&gt;
    &lt;%= list_offices_if_present(@contact) %&gt;
    &lt;%= list_phone_if_present(@contact)   %&gt;
  &lt;p&gt;
  </code></pre>
  
  <p>The issue is that the <code>&lt;br&gt;</code> tag is rendering out as text, and not an actual line break, like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Works out of: Some Location &lt;br /&gt; Phone: 402-555-1234  
  </code></pre>
  
  <p>How do I add a line break to the end of a content_tag within a helper method?</p>