-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sass master problem #28
Comments
This is because of the new Sass/Rails integration, in which Sass stylesheets are treated as Rails views rather than compiled separately. If you put your stylesheets in app/views (as .css.scss or .css.sass), they'll work from there. I'll leave this issue open to remind me to print a message about this when Sass notices you have a |
so even is css_dir = "public/stylesheets" i should put my css.scss files to css_dir = "public/stylesheets/sass"? |
tried to put *.css.scss to app/views/stylesheets and changed compass config, but it still not works. |
Do you have routing and a controller set up for |
no. should i? |
Yes, since they're just views, they need to have routes and a controller set up just like other views. |
ok. thanks it works, but as i understood it wont generate css files anymore. and i think it's bad, because it won't be possible to handle css requests without rails (only using apache or nginx). |
You can always manually include |
Compass init generates sass files in the previous place, I moved my stylesheets into app/views/stylesheets, created an stylesheets controller and setted my routes but I still get this error. ActionView::MissingTemplate (Missing template stylesheets/screen with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :haml], :formats=>[:css], :locale=>[:"pt-BR", :"pt-BR"]} in view paths |
@maca: rather than re-opening old, tangentially related issues, please start a new issue. Also, please provide more detailed information about the steps that you're taking, the precise problem you're seeing, and how to reproduce it. |
Well I am starting a new vanilla rails app and I want to use compass and susy, I ran compass init and compass generated the sass files in app/stylesheets. From what I read in this thread having sass files in app/stylesheets is no longer the standard way and for rails integration I should create a controller for my stylesheets and store my sass files in app/views, right? Now the problem is that apparently there is no handler for sass files so the controller doesn't know what to do with my sass templates even though they are there and are named *.css.sass. My inmediate temporary workaround was mounting a Sinatra app and using Tilt to render the sass templates, ok, it works but gets me into other issues with compass such as this:
I joined this thread because I was having the same issue as slbug:
|
not completely sure if it's sass or compass problem, but...
Gemfile:
(using my compass fork just because of fixed gemspec to work with haml 3.1)
config/compass.rb
Problem: sass not generating css files. i removed everything from public/stylesheets and next browser refreshes gives
downgrading sass version to '3.1.0.alpha.32' helps. everything works.
The text was updated successfully, but these errors were encountered: