-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
undefined method `environment' for nil:NilClass #3005
Comments
This is an issue with sass-rails and/or sprockets: rails/sass-rails#191, sstephenson/sprockets#537 |
For now, just add this to your Gemfile...
Or, until those issues referenced above get fixed. |
@seanlinsley, the problem is not in sprockets. ActiveAdmin should probably lock sass-rails and not sprockets, for now. See @josh's (sprockets maintainer) comments... "This is a sass-rails issue. It monkey patches private Sprockets classes. The fix will need to be made there." Though, locking sprockets fixes the problem, we should probably just lock sass-rails and leave sprockets alone...
Anyone else have any more information on the topic? |
@tonycoco sound advice. |
Was having this issue today. To fix, I locked: gem 'rails', '4.0.4'
gem 'sass-rails', '~> 4.0.3'
gem 'bourbon', '< 4'
gem 'activeadmin', :github => 'gregbell/active_admin' Please let me know if I can provide additional information. |
…though we have to specify a version for sass-rails (#3093)
This looks to be resolved now 🐝 |
The text was updated successfully, but these errors were encountered: