mihai
mihai

Reputation: 38543

Purpose of the sass-rails gem in rails

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

Answers (1)

aguynamedloren
aguynamedloren

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

Related Questions