I'm trying to link to a youtube page in a rails app with the font-awesome gem.
<i><%= link_to fa_icon "youtube-square 2x", @book.youtube %></i>
In doing so, I receive no implicit conversion of Symbol into String
error message.
Do I need to remove the font-awesome helper and include it as a class, or is there another way to make this work together?
Looking at the docs, I believe that you need to put the fa_icon
helper in a link_to
block:
<%= link_to @book.youtube do %>
<%= fa_icon "youtube-square 2x" %>
<% end %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With