I\'m getting error from devise \"User does not respond to \'devise\' method\" when running \"rails generate devise:install\". Ideas re how to resolve?
In fact also get
For people that arrived here due to the following error:
User 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)
but you already have your ORM initialized properly, it may be gem related. I was getting the same problem on an old app and it was due to an incompatibility with the active_reload gem. gem active_reload is not compatible with Rails 3.2 and should be removed. active_reload has been incorporated into Rails 3.2, so it's safe to remove.
I got the solution from here: http://anlek.com/2012/02/user-does-not-respond-to-devise-method/