Skip to content

Instantly share code, notes, and snippets.

@cloud8421
Created June 10, 2011 07:44
Show Gist options
  • Save cloud8421/1018400 to your computer and use it in GitHub Desktop.
Save cloud8421/1018400 to your computer and use it in GitHub Desktop.
Rails 3.1.rc4 temporary fix for production :scss error (replicated in Heroku)

Rails 3.1.rc4

If you find this error in production env:

ActionView::Template::Error (undefined method compress' for :scss:Symbol (in /app/app/assets/stylesheets/application.css))`

You can temporarily comment out the following line in config/environments/production.rb

config.assets.css_compressor = :scss

A fix to solve this and re-enable the config is already on its way - see here:

rails/rails#1626

@dpetersen
Copy link

Awesome, thanks!

@cloud8421
Copy link
Author

Glad it helped!

@amalc
Copy link

amalc commented Aug 1, 2011

Fantastic! +1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment