How to make Rails 3.1 use SASS (Over SCSS) as the default?
Solution 1:
For rails 3.1.rc4, you could set the config:
config.sass.preferred_syntax = :sass
in the application.rb
file
Solution 2:
I added the following to config/environments/development.rb
:
config.sass.preferred_syntax = :sass
That did the trick.
Solution 3:
Do require 'sass/plugin'
and make sure it's at the bottom after your Application.initialize!
call.
Solution 4:
I definitely prefer sass to scss too - have you considered just using the compass gem for all your CSS, and adding preferred_syntax = :sass
to config/compass.rb
I haven't tested this out yet on rails 3.1 yet but it works in 3.0.7
EDIT
As a troubleshooting step, what happens when you remove just the first line of code from sass_config.rb so that it just has the second one? Do both these lines cause the error?