سؤال

I've updated my app to use the rails 3.1 asset pipeline (I think). I can compile .css files but not css.scss. I am running the sass-rails gem but nothing seems to work.

What should I check? Sorry, I don't know exactly what info I should supply here to help debug. I can edit this...

EDITS:

My .scss file contains:

/*
*= require_self
*= require_tree . 
*/

edit: see Sprockets::CircularDependencyError in Store#index

Thanks, Rim

هل كانت مفيدة؟

المحلول

Remember that css.scss files need to be included, not imported like the rest:

So: Turn you application.css into an application.css.scss, and do like this in it:

/*
*= require ./normal/custom.css
*= require_self
*/

@import "normal/design/control_panel";
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top