font-awesome-rails icon indicating copy to clipboard operation
font-awesome-rails copied to clipboard

Rails 6.1.3.1 - icons are not being loaded with Bulma

Open stephenhuey opened this issue 3 years ago • 1 comments

Font Awesome icons are not being loaded when using the Bulma CSS framework although Bulma expects it to work. My app is running on Ruby 3 with Rails 6.1.3.1 and this is in my Gemfile:


gem "bulma-rails", "~> 0.9.1"
gem "font-awesome-rails", "4.7.0.6"

I initially tried font-awesome-rails with no version (the latest version). Here is my application.scss file:


@import "bulma";
@import "font-awesome";

Rubymine says Cannot resolve file 'font-awesome' and I'm really not sure of the cleanest way to get icons showing up in my browser.

Any ideas?

Originally posted by @stephenhuey in https://github.com/bokmann/font-awesome-rails/issues/210#issuecomment-825039530

stephenhuey avatar Apr 22 '21 17:04 stephenhuey

@stephenhuey This option works for me, add into your styles file the following line.

*= require font-awesome

It doesn't matter if your file is .css or scss.

brayandiazc avatar Jan 20 '22 14:01 brayandiazc