devise - devise_for :users error in Rails 4 -


i have problem recent migration rails 3 app 4. have not seeing error on other applications upgraded.

when starting server error. realised error appears while devise_for :users route present on routes.rb.

any idea causing error , how fix it?

/users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in `rescue in execute_if_updated': rails::application::routesreloader#execute_if_updated delegated updater.execute_if_updated, updater nil: #<rails::application::routesreloader:0x007fc453039b10 @paths=["/users/user/sites/mysite/config/routes.rb"], @route_sets=[#<actiondispatch::routing::routeset:0x007fc4531562a0>]> (runtimeerror)     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/application/finisher.rb:69:in `block in <module:finisher>'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'     /users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'     /users/user/sites/mysite/config/environment.rb:8:in `<top (required)>'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'     /users/user/sites/mysite/config.ru:3:in `block in <main>'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'     /users/user/sites/mysite/config.ru:in `new'     /users/user/sites/mysite/config.ru:in `<main>'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in `app'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in `start'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'     /users/user/.rvm/gems/ruby-2.0.0-p247@mysite/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'     script/rails:6:in `require'     script/rails:6:in `<main>'      

this issue problem: https://github.com/rails/rails/issues/10559

suggestions:

  1. remove attr_accessible in each of model
  2. add protected_attributes gem

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -