[Rails] Setup Font Awesome using rubygems

February 23, 2021


Get vector icons and social logos on your website with Font Awesome, the web’s most popular icon set and toolkit.

Details from fontawesome website.

With Boring Generator

Boring Generator installation guide.

> rails generate boring:font_awesome:ruby_gem:install

Without Boring Generator

1. Add Font Awesome gem

> bundle add font-awesome-sass

2. Import Font Awesome stylesheets

# app/assets/stylesheets/application.css.scss

@import "font-awesome-sprockets";
@import "font-awesome";

And you are all setup to use Font Awesome icons.

Happy Coding!!!