title: How do I nest a div inside an anchor tag in rails
body: <p>I'm a bit of a Ruby on Rails amateur, and I am trying to nest a div tag inside of an anchor tag in rails. I can make it work, but the resulting code I have written is terrible and is certainly NOT the rails way.</p>
  
  <p>Here is an example of what I am trying to accomplish in HTML:</p>
  
  <pre><code>&lt;a href="tell-a-friend"&gt;
  &lt;div id="tellafriend"&gt;
      &lt;strong&gt;Strength in Numbers.&lt;/strong&gt;&lt;br /&gt;
      Suggest a friend or colleague to participate in this survey.
  &lt;/div&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Here is what I came up with to do it in ERB:</p>
  
  <pre><code>&lt;%= link_to content_tag(:div, 
      content_tag(:strong, 'Add your labor rates now.') + 
      content_tag(:br, '') + ' We are counting on you.', :id =&gt; 'participate'), 
  participate_path %&gt;
  </code></pre>
  
  <p>Or here I mixed some HTML and ERB:</p>
  
  <pre><code>&lt;%= link_to '&lt;div id="results"&gt;
      &lt;strong&gt;See the results.&lt;/strong&gt;&lt;br /&gt;
      Knowledge is power.
  &lt;/div&gt;'.html_safe, results_path %&gt;
  </code></pre>
  
  <p>Both of my solutions seem very ugly... but moving it into a helper didn't seem like the right thing to do, given that the content of the DIV changes and that I am only displaying 3 of these on one page.</p>
  
  <p>So if anyone is aware of a better way to do this, I am interested! Any combination of HTML, ERB and HAML is ok by me.</p>