Hello! I have problem:
Started POST "/users" for 127.0.0.1 at Sat Oct 23 05:19:33 +0600 2010
Processing by Devise::RegistrationsController#create as HTML
Parameters: {"commit"=>"Sign up", "authenticity_token"=>"YwZn1M6QbSnSDciKzo1hYWOvHyCRn05F/RKHyjOmGfU=", "utf8"=>"✓", "user"=>{"password_confirmation"=>"[FILTERED]", "password"=>"[FILTERED]", "email"=>"[email protected]"}}
Completed in 132ms
NoMethodError (undefined method `encrypted_password=' for #User:0x7f70189848a8):
Using gems:
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0)
Using builder (2.1.2)
Using i18n (0.4.1)
Using activemodel (3.0.0)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.0)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.7)
Using actionmailer (3.0.0)
Using arel (1.0.1)
Using activerecord (3.0.0)
Using activeresource (3.0.0)
Using bcrypt-ruby (2.1.2)
Using bundler (1.0.2)
Using highline (1.6.1)
Using net-ssh (2.0.23)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.0.1)
Using capistrano (2.5.19)
Using cgi_multipart_eof_fix (2.5.0)
Using daemons (1.1.0)
Using warden (0.10.7)
Using devise (1.1.3)
Using fastthread (1.0.7)
Using gem_plugin (0.2.3)
Using mongrel (1.1)
Using mongrel_experimental (1.1)
Using thor (0.14.3)
Using railties (3.0.0)
Using rails (3.0.0)
Using sqlite3-ruby (1.3.1)
Thanks!
Please include the whole backtrace.
activemodel (3.0.0) lib/active_model/attribute_methods.rb:364:in method_missing'
activerecord (3.0.0) lib/active_record/attribute_methods.rb:46:inmethod_missing'
devise (1.1.3) lib/devise/models/database_authenticatable.rb:41:in password='
activerecord (3.0.0) lib/active_record/base.rb:1548:insend'
activerecord (3.0.0) lib/active_record/base.rb:1548:in attributes='
activerecord (3.0.0) lib/active_record/base.rb:1544:ineach'
activerecord (3.0.0) lib/active_record/base.rb:1544:in attributes='
activerecord (3.0.0) lib/active_record/base.rb:1411:ininitialize'
devise (1.1.3) lib/devise/controllers/internal_helpers.rb:63:in new'
devise (1.1.3) lib/devise/controllers/internal_helpers.rb:63:inbuild_resource'
devise (1.1.3) app/controllers/devise/registrations_controller.rb:14:in create'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in send_action'
actionpack (3.0.0) lib/abstract_controller/base.rb:150:inprocess_action'
actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:in process_action'
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:18:inprocess_action'
activesupport (3.0.0) lib/active_support/callbacks.rb:445:in _run__1732029701__process_action__1623385099__callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:insend'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in _run_process_action_callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:93:insend'
activesupport (3.0.0) lib/active_support/callbacks.rb:93:in run_callbacks'
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:17:inprocess_action'
actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb:30:in process_action'
activesupport (3.0.0) lib/active_support/notifications.rb:52:ininstrument'
activesupport (3.0.0) lib/active_support/notifications/instrumenter.rb:21:in instrument'
activesupport (3.0.0) lib/active_support/notifications.rb:52:ininstrument'
actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb:29:in process_action'
actionpack (3.0.0) lib/action_controller/metal/rescue.rb:17:inprocess_action'
actionpack (3.0.0) lib/abstract_controller/base.rb:119:in process'
actionpack (3.0.0) lib/abstract_controller/rendering.rb:40:inprocess'
actionpack (3.0.0) lib/action_controller/metal.rb:133:in dispatch'
actionpack (3.0.0) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.0.0) lib/action_controller/metal.rb:173:in action'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:62:incall'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:62:in dispatch'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:27:incall'
actionpack (3.0.0) lib/action_dispatch/routing/mapper.rb:34:in call'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:incall'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in recognize'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:68:inoptimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in recognize'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:incall'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:492:in call'
warden (0.10.7) lib/warden/manager.rb:35:incall'
warden (0.10.7) lib/warden/manager.rb:34:in catch'
warden (0.10.7) lib/warden/manager.rb:34:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/best_standards_support.rb:17:in call'
actionpack (3.0.0) lib/action_dispatch/middleware/head.rb:14:incall'
rack (1.2.1) lib/rack/methodoverride.rb:24:in call'
actionpack (3.0.0) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/flash.rb:182:in call'
actionpack (3.0.0) lib/action_dispatch/middleware/session/abstract_store.rb:149:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/cookies.rb:287:in call'
activerecord (3.0.0) lib/active_record/query_cache.rb:32:incall'
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in cache'
activerecord (3.0.0) lib/active_record/query_cache.rb:12:incache'
activerecord (3.0.0) lib/active_record/query_cache.rb:31:in call'
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:355:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:46:in call'
activesupport (3.0.0) lib/active_support/callbacks.rb:415:in_run_call_callbacks'
actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:44:in call'
rack (1.2.1) lib/rack/sendfile.rb:107:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/remote_ip.rb:48:in call'
actionpack (3.0.0) lib/action_dispatch/middleware/show_exceptions.rb:46:incall'
railties (3.0.0) lib/rails/rack/logger.rb:13:in call'
rack (1.2.1) lib/rack/runtime.rb:17:incall'
activesupport (3.0.0) lib/active_support/cache/strategy/local_cache.rb:72:in call'
rack (1.2.1) lib/rack/lock.rb:11:incall'
rack (1.2.1) lib/rack/lock.rb:11:in synchronize'
rack (1.2.1) lib/rack/lock.rb:11:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/static.rb:30:in call'
railties (3.0.0) lib/rails/application.rb:168:incall'
railties (3.0.0) lib/rails/application.rb:77:in send'
railties (3.0.0) lib/rails/application.rb:77:inmethod_missing'
railties (3.0.0) lib/rails/rack/log_tailer.rb:14:in call'
rack (1.2.1) lib/rack/content_length.rb:13:incall'
rack (1.2.1) lib/rack/chunked.rb:15:in call'
rack (1.2.1) lib/rack/handler/mongrel.rb:67:inprocess'
mongrel (1.1) lib/mongrel.rb:155:in process_client'
mongrel (1.1) lib/mongrel.rb:154:ineach'
mongrel (1.1) lib/mongrel.rb:154:in process_client'
mongrel (1.1) lib/mongrel.rb:281:inrun'
mongrel (1.1) lib/mongrel.rb:281:in initialize'
mongrel (1.1) lib/mongrel.rb:281:innew'
mongrel (1.1) lib/mongrel.rb:281:in run'
mongrel (1.1) lib/mongrel.rb:264:ininitialize'
mongrel (1.1) lib/mongrel.rb:264:in new'
mongrel (1.1) lib/mongrel.rb:264:inrun'
rack (1.2.1) lib/rack/handler/mongrel.rb:38:in run'
rack (1.2.1) lib/rack/server.rb:213:instart'
railties (3.0.0) lib/rails/commands/server.rb:65:in start'
railties (3.0.0) lib/rails/commands.rb:30
railties (3.0.0) lib/rails/commands.rb:27:intap'
railties (3.0.0) lib/rails/commands.rb:27
script/rails:6:in `require'
script/rails:6
Do you have the encrypted_password column on your model?
Yes
attr_accessible :email, :password, :password_confirmation, :remember_me, :encrypted_password
Just because it's attr_accessable doesn't mean the attribute exists, just means you can access it (if it did exist). Go into your rails console and run:
User.new.respond_to?(:encrypted_password=)
If that returns true you have the column in your model, if not you need to make sure you run the correct migrations.
User.new.respond_to?(:encrypted_password=) => false
I run rake db:migrate:reset and it work!!!
Thanks!
Most helpful comment
User.new.respond_to?(:encrypted_password=) => false
I run rake db:migrate:reset and it work!!!
Thanks!