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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -