Compass Rails 3.0 working with 'compass watch' but not without

Posted by Mike Blyth on Stack Overflow See other posts from Stack Overflow or by Mike Blyth
Published on 2012-07-02T14:58:02Z Indexed on 2012/07/02 15:15 UTC
Read the original article Hit count: 438

I'm trying Compass with Rails 3.0.7, just trying to get started. Using gem compass-rails. If I put my sass file in app/assets/stylesheets and run 'compass watch', everything works ok: the compiled css is put into public/stylesheets.

However, if I stop 'watch' and rely on Rails to do the compilation, it does not work. Instead, the program looks at the public/stylesheets/sass folder for the input. Furthermore, if a file in that folder has the '@include "compass"' directive, I get an error that the file is not found. How do I force Rails to look in the right place -- app/assets/stylesheets?

© Stack Overflow or respective owner

Related posts about ruby-on-rails-3

Related posts about compass-css