Forum: Ruby on Rails Undefined method: hashed_password ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
79b186534e2e715ee012ca81d6c8b0b6?d=identicon&s=25 (Guest)
on 2007-03-12 21:51
(Received via mailing list)
I bought the Agile book to learn Rails, and everything was going
smooth until Iteration F1:  Adding Users.  I've double checked my
code, used the code provided by the book, and still it returns this
same error message:


 NoMethodError in LoginController#add_user

undefined method `hashed_password=' for #<User:0x473f0d8>

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
activerecord-1.15.2/lib/active_record/base.rb:1858:in `method_missing'
#{RAILS_ROOT}/app/models/user.rb:40:in `password='
#{RAILS_ROOT}/app/controllers/login_controller.rb:38:in `new'
#{RAILS_ROOT}/app/controllers/login_controller.rb:38:in `add_user'


Parameters: {"user"=>{"name"=>"al", "password_confirmation"=>"cl",
"password"=>"bl"}, "commit"=>"Add User"}

Show session dump

flash: !map:ActionController::Flash::FlashHash {}

Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}


Any Ideas?
This topic is locked and can not be replied to.