Auto update CSS from SASS/SCSS in Rails?
Posted
by Vulgrin
on Stack Overflow
See other posts from Stack Overflow
or by Vulgrin
Published on 2010-06-14T04:56:41Z
Indexed on
2010/06/14
5:02 UTC
Read the original article
Hit count: 282
ruby-on-rails
|sass
Maybe I'm confused on how SASS/SCSS works within Rails (2.3.8.) but I was under the impression that if I included the option
Sass::Plugin.options[:always_update] = true
that whenever I changed my SCSS file and then hit the page (controller) again, the SCSS would recompile.
I can't seem to get this to work, and can't seem to find a good tutorial / example for it. I've tried setting the above property in the Environment.rb file, but it didn't seem to do anything. I tried putting it in its own initializer with require 'sass' but that doesn't seem to work either.
What am I missing? Or am i just forced to keep a terminal open with a sass --watch command running to be able to rapidly debug / change my styles?
thx
© Stack Overflow or respective owner