Rails admin doesn't work on clean install
Closed this issue · 1 comments
Forked rails4-starterkit
Created a user
Set user is_admin to true
Go to http://0.0.0.0:3000/admin
Get the following error
Asset depends on 'rails_admin/bootstrap/glyphicons-halflings.png' to generate properly but has not declared the dependency
Please add: //= depend_on_asset "rails_admin/bootstrap/glyphicons-halflings.png"
to '/Users/alex/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.2/app/assets/stylesheets/rails_admin/rails_admin.scss.erb'
(in /Users/alex/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.2/app/assets/stylesheets/rails_admin/rails_admin.scss.erb)
This is an issue with rails_admin and the new sprocket settings.
Setting config.assets.raise_runtime_errors = false in development.rb fixes the issue. Ideally, we could just turn off assets runtime errors for rails_admin, but I'm not sure how to do this right off hand.
I updated raise_runtime_errors to default to false for now to make it easier.