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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -