Devise not working with Rails 4.0 -
i took following steps:
rails new routing_test
- in gemfile added devise
rails devise g user invoke active_record
create db/migrate/20130731191051_devise_create_users.rb create app/models/user.rb invoke rspec create spec/models/user_spec.rb invoke factory_girl create spec/factories/users.rb insert app/models/user.rb route devise_for :users
and then, simple rake db:migrate, following:
rake aborted!
rails::application::routesreloader#execute_if_updated delegated updater.execute_if_updated, updater nil: #<rails::application::routesreloader:0x007feb823b6120 @paths=["/users/krg07/developer/core2/test/dummy/config/routes.rb", "/users/krg07/developer/core2/config/routes.rb"], @route_sets=[#<actiondispatch::routing::routeset:0x007feb82c5e700>, #<actiondispatch::routing::routeset:0x007feb82d34440>]> /users/krg07/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in `rescue in execute_if_updated' /users/krg07/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated' /users/krg07/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/finisher.rb:69:in `block in <module:finisher>'
any idea going on? thanks, appreciate it!
i had problems getting devise work rails 4 , found of issues because including older version of gem not updated work rails 4. specifying latest version of gem helped:
gem 'devise', '3.0.0'
you may need re-run devise installer after gem has been updated.
Comments
Post a Comment