How to translate i tag of html into rails' link_to helper? -
i translate below code link_to helper. how that?
<a href="#"><i class="fa fa-twitter"></i></a>
you can recreate above link using link_to
's block format, so:
<%= link_to "#" %> <i class="fa fa-twitter"></i> <% end %>
hope helps!
Comments
Post a Comment