Reputation: 93
I've read a few of the pages on using font awesome with rails and that the Gemfile should include
gem 'font-awesome-rails'
then run bundle install
and the application.css should include
*= require font-awesome
however, when I try to use the icons such as
<i class="icon_home"></i>
to get the home icon, it shows up as blank, the grey icon should be the home icon
picture
I have also tried to edit the font-awesome.css file and change the @font face and edit the applications.rb to include the fonts folder as recommended in other pages but I get the same issue
Upvotes: 1
Views: 3584
Reputation: 452
Use this.
<i class="fa fa-home" aria-hidden="true"></i>
If you ever want any icon just go Here and click on icon you want and it will give your HTML for that icon.
Upvotes: 3