apigy / selfstarter

Roll your own crowdfunding

Home Page:selfstarter.us

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined method `environment'

jarkelen opened this issue · comments

When setting up the app and running it for the first time, I receive an undefined method environment' 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?

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.

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