apigy / selfstarter

Roll your own crowdfunding
selfstarter.us
Other
3.17k stars 1.63k forks source link

undefined method `environment' #86

Closed jarkelen closed 10 years ago

jarkelen commented 10 years ago

When setting up the app and running it for the first time, I receive an undefined methodenvironment' for nil:NilClasserror. When I disable all imports frommain.css.scss` the site works fine, although without any styling. Any idea what is going wrong?

jarkelen commented 10 years ago

I "solved" it by adding all css from all css files into one big main.css.scss file, but still not sure what caused the error, because "environment" is not being used in the stylesheets.

Jarred-Sumner commented 10 years ago

This sounds like an issue with initializing Rails during asset precompilation. Try running bundle exec rake assets:precompile RAILS_ENV=development. Some things aren't loaded in the assets RAILS_ENV