-
Notifications
You must be signed in to change notification settings - Fork 169
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
uninitialized constant Haml::Filters::SassImporter #77
Comments
+1 I get the error in a view rendered by ActionMailer as well |
I downgraded sass-rails to 4.0.5 and compass-rails to '1.1.7' and it solved the problem on my side. Strange. |
Oh well, now I'm having this error Everything works fine now with the latest compass-rails (2.0.0) and an old sass-rails version: 4.0.5 |
I believe this is a bug compass-rails, as sass-rails changed out from underneath it. I'll try and get a solution in. |
Hello,
I've stumbled across this issue when upgrading my app to Rails 4.2.
It can be reproduced with a new rails project.
application.css
inapplication.css.scss
and add@import 'compass';
application.rb
:config.assets.enabled = true
(important part!)When trying to access the view, the following error will be raised:
As a workaround, I prevented the load of
sass_rails_filter
by removingconfig.assets.enabled = true
inapplication.rb
(it's supposed to be by default now anyway). If I understand correctly it only prevents me from using rails helpers in inline sass.As a sidenote, the test
app.config.assets.enabled
inhaml-4.0.6/lib/haml/railtie.rb
seems buggy sinceapp.config.assets.enabled
isnil
for a new rails app even though asset pipeline is enabled by default...Please tell me if you need any more information.
You might also consider that the issue belongs to compass-rails... Let me know!
The text was updated successfully, but these errors were encountered: