-
Notifications
You must be signed in to change notification settings - Fork 333
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 Sass::Rails::SassTemplate in production #38
Comments
Gemfile? Hunt & pecked on my iPhone... Sorry if it's brief! On Sep 1, 2011, at 11:33 AM, apocalyptiqreply@reply.github.com wrote:
|
I have sass-rails '~> 1.3.0' in my Gemfile in :assets group, and i've ran there "bundle install" |
This error is almost certainly a configuration issue. Please post the steps required to reproduce it exactly. Hunt & pecked on my iPhone... Sorry if it's brief! On Sep 1, 2011, at 11:48 AM, apocalyptiqreply@reply.github.com wrote:
|
actually i have sass-rails '~> 3.1.0', my mistake :) so why that error is occuring? |
that's actually some problem with active_admin: helpers.rb:3 : any ideas how to fix it? the same issue in active_admin: activeadmin/activeadmin#447 |
how can I fix it when you still have not provided steps to reproduce it? |
Install Rails 3.1 with activeadmin from github and try to run it in production. |
To work around this, just move gem 'sass-rails' out of the group 'assets', which doesn't get loaded before ActiveAdmin. |
Thanks a lot tracedwax, that fixed it! |
This issue is back in 3-1-stable, not using active_admin or anything fancy. Have to move it out of the :assets group for it to not complain on assets:precompile. Worked fine in 3.1.0. |
I already have sass-rails in my :assets group and still get this error I tried changing my heroku config RAILS_ENV and RACK_ENV from staging to production but that didn't do it either Any clues? Thanks! |
@joemsak , so as @tracedwax said, move your sass-rails out of assets group, just instead of:
do:
|
Oh. My bad. I read that as "in to", somehow Sorry! On Nov 21, 2011, at 2:55 AM, Szymon Przybyłreply@reply.github.com wrote:
|
Wow, talk about reading comprehension! Sometimes the brain just doesn't function right when you're trying to push a demo out for a client and you start getting errors on your deploy! That worked for me, thanks again! |
thanks tracedwax, worked for me! was having such a headache on heroku |
Glad to hear! On Tue, Dec 13, 2011 at 1:07 AM, stringpane <
|
sip |
I had this issue when trying to run rake db:migrate on Heroku. It did however work locally. Moving gem gem 'sass-rails', " ~> 3.1.0" out of assets in the Gemfile fixed the issue. |
I think this should be reopen, moving sass-rails outside the assets groups is not a solution is a workaround. May be i am missing something. What's the reason for it to be needed in production? |
The ActiveAdmin issue is not related to sass-rails. I posted a possible solution to it as a comment to #GH-447 |
Thanks. Closing again. |
After migrating from Rails 3.0.10 to 3.1.0 i get this error on my production server (in development app works ok):
The text was updated successfully, but these errors were encountered: