Hi,
Is there a way to get your SCSS files to automatically generate new CSS each time a file is changed as part of Rails, without having to use sass --watch? Or is this just meant to happen anyway?
By this I mean having rails do the watching for you, or maybe if it can recompile all SCSS every page load in development that is fine too.
Also, perhaps HAML is not loading properly, as if I include the line:
Sass::Plugin.options[:always_update] = true
after my initializer block in environment.rb, then I get the following exception on startup:
/persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant Sass (NameError)
I am working with Rails v 2.3.5, and HAML v 3.0.18, and have "config.gem 'haml', :version => '3.0.18'" in my initializer block.
Thanks for your help.