basically I want the following output with link_to
:
<a href="#"><i class="some-class"></i>Some text</a>
Any suggestions?
basically I want the following output with link_to
:
<a href="#"><i class="some-class"></i>Some text</a>
Any suggestions?
<%= link_to "#" do %>
<i class="some-class"></i>Some text
<% end %>
Block form of link_to
for the win!
What about content_tag ?
link_to "#{content_tag(:i, "", :class => 'some-class')}Some text".html_safe, root_url