Embedded HTML in link_to body in Rails
= link_to "http://www.example.com" do
<strong>strong</strong>
Try it this way
<%= link_to(raw("a <strong>strong</strong> link"),{:pics => true},{ :class => 'highlight'}) %>
you can use html_safe
<%= link_to ("<i class='someIcon'></i> Link").html_safe %>
As of 2016 I prefer this method.
<%= link_to my_path do %>
This is a <strong>ape</strong>
<% end %>