plataformatec/devise — Issue #1597: Error after upgrade to Rails 3.2
Author: pioz
Created: 2012-01-24 12:06:44+00:00
State: open

With Rails 3.2 I've the follow error:

=> Booting WEBrick
=> Rails 3.2.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/devise-1.5.3/lib/devise/rails/routes.rb:385:in `raise_no_devise_method_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)
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/devise-1.5.3/lib/devise/rails/routes.rb:196:in `block in devise_for'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/devise-1.5.3/lib/devise/rails/routes.rb:192:in `each'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/devise-1.5.3/lib/devise/rails/routes.rb:192:in `devise_for'
from /Users/pioz/Code/ecommerce/config/routes.rb:153:in `block (2 levels) in '
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:622:in `scope'
from /Users/pioz/Code/ecommerce/config/routes.rb:9:in `block in '
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:272:in `instance_exec'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:272:in `eval_block'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:249:in `draw'
from /Users/pioz/Code/ecommerce/config/routes.rb:1:in `'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:40:in `each'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/file_update_checker.rb:78:in `call'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/file_update_checker.rb:78:in `execute'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:27:in `updater'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:9:in `rescue in execute_if_updated'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/finisher.rb:67:in `block in '
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `run'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `each'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application.rb:136:in `initialize!'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/pioz/Code/ecommerce/config/environment.rb:5:in `'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /Users/pioz/Code/ecommerce/config.ru:4:in `block in

'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/pioz/Code/ecommerce/config.ru:1:in `new'
from /Users/pioz/Code/ecommerce/config.ru:1:in `

'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands/server.rb:46:in `app'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands/server.rb:70:in `start'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands.rb:55:in `block in '
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands.rb:50:in `tap'
from /Users/pioz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands.rb:50:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

Any idea to fix this?