Sass caching issue in development.

Hi everyone,

Lately, I’ve had quite an annoying problem when I work with Sass in Rails. For reasons I cannot figure out, I need to kill the local Rails server instance, “rm -rf tmp/cache” and start the server again to see the changes I’ve made in app/assets/stylesheets. It obviously affects my productivity why I now seek your help.

Many answers on StackOverflow to similar questions suggest that I add config.assets.cache_store = :null_store and config.sass.cache = false to config/environments/development.rb, but unfortunately that does not help me solve my problem. Other answers suggest that I remove tmp/cache which works in my case, but the problem is that I have to do it every single time I change something in app/assets/stylesheets.

I run Ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin13.0.0] and Rails 3.2.15 on Mac OS 10.9.

I really hope that some of you might have a solution to my problem.

Kind regards,

Mathias Jean Johansen


Did you ever find a solution? A few people at my work including myself also have the same issue.