receta icon indicating copy to clipboard operation
receta copied to clipboard

Asset filtered out and will not be served: add `Rails.application.config.assets.precompile += %w( bootstrap/glyphicons-halflings-regular.woff2 )` to `config/initializers/assets.rb` and restart your server

Open yumikohey opened this issue 9 years ago • 3 comments

I am trying to follow your tutorial. However, I stuck here. Even though I follow every single step from your tutorial, I don't get it.

Error: Asset filtered out and will not be served: add Rails.application.config.assets.precompile += %w( bootstrap/glyphicons-halflings-regular.woff2 ) to config/initializers/assets.rb and restart your server

Could you help me with it?

yumikohey avatar Jul 22 '15 03:07 yumikohey

sorry for the delay. If you clone this repo, does it work for you?

In either case, can you share your code? This stuff is really hard to debug without seeing the entire system you are using.

davetron5000 avatar Jul 27 '15 23:07 davetron5000

@yumikohey @davetron5000 I encountered the same error and am not sure why. However, following the error message and adding 'Rails.application.config.assets.precompile += %w( bootstrap/glyphicons-halflings-regular.woff2 )' to the config/initializers/assets.rb file solved the problem.

nicholascu avatar Aug 25 '15 22:08 nicholascu

Yeah, they recently added .woff2 files and those aren't picked up by one of the other magical incantations. Will update.

davetron5000 avatar Aug 28 '15 15:08 davetron5000