gregbell/active_admin — Issue #724: new rails 3.1.1 app exception during boot
Author: codebrew
Created: 2011-11-04 21:55:27+00:00
State: open

I'm trying out the latest version of active_admin with a new rails 3.1.1 app. I setup active_admin with:

rails generate active_admin:install Admin
rake db:migrate

When booting the app I get the following exception:
/Users/fitz/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/devise-1.4.7/lib/devise/rails/routes.rb:379:in `raise_no_devise_method_error!': Admin does not respond to 'devise' method. This usually means you haven't loaded your ORM file or it's being loaded too late. To fix it, be sure to require 'devise/orm/YOUR_ORM' inside 'config/initializers/devise.rb' or before your application definition in 'config/application.rb' (RuntimeError)

If I remove ActiveAdmin.routes(self) from routes.rb then the app boots and devise loads up the Admin user without issue.