Implicit dependencies on the Rails Asset Pipeline
Created by: maxkwallace
When I added Administrate to my Rails app, things were broken out of the box. My app is designed to be an API backend only, and didn't include Sprockets or several other necessary Rails Asset Pipeline gems.
I'm not a Rails expert, so I can't speak to how this issue should be handled in general. But you might find it worthwhile to make these dependencies explicit within Administrate.
For reference, I was able to load the Administrate dashboard after adding the following to my Gemfile
gem 'sprockets-rails'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
(EDIT: this list is neither minimal nor exhaustive-- I just copy/pasted from the Rails Guides. As grayson mentioned below, the 'coffee-rails'
gem shouldn't be needed.)
and uncommenting the line
gem 'sprockets-rails'
in /config/application.rb
.