Reputation: 38543
What is the purpose of the gem 'sass-rails'
that is included by default in the :assets
group of a new rails app ?
If I comment out that line I can still use .css.scss
files without a problem.
Upvotes: 0
Views: 260
Reputation: 2273
You need it for sass/scss files. Clear your browser cache, clear rails cache (Rails.cache.clear
in console), comment out the line, uninstall the gem (all versions), then restart your server. You'll get the following error:
no such file to load -- sass
Uncomment the line for the sass-rails gem, reinstall the gem and restart your server to make it work again.
Upvotes: 2