1
votes

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

1
have you tried with restarting your server?Shefalee Chaudhary
+1 to restarting the server. Alternatively, I just ended up including the font-awesome CDN into most of my applications.Nick Schwaderer

1 Answers

3
votes

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.