title: How to render html + string in link_to anchor?
body: <p>In a Rails app I have helper methods that render html snippets, e.g. Twitter bootstrap fonts</p>
  
  <pre><code>def edit_icon
    content_tag(:i, "", :class=&gt;'icon-edit')
  end
  </code></pre>
  
  <p>I want to display this in a link anchor with additional text appended. e.g.</p>
  
  <pre><code>&lt;%= link_to "#{edit_icon} Edit this Record", edit_record_path(@record) %&gt;
  </code></pre>
  
  <p>This is currently rendering the content_tag as a string, not as HTML. How do I render it as HTML?</p>
  
  <p>I experimented with <code>&lt;%= link_to "#{raw edit_icon}</code> and <code>&lt;%= link_to "#{edit_icon.html_safe}</code>, but these don't seem to be what I need in this case.</p>
  
  <p>Thanks for any ideas.</p>