# Undefined method: hashed\_password?

**URL:** <https://www.ruby-forum.com/t/undefined-method-hashed-password/88589>\
**Category:** Rails\
**Created:** [March 12, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/undefined-method-hashed-password/88589 "2007-03-12T21:51:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 12, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/undefined-method-hashed-password/88589/1 "2007-03-12T21:51:45Z")

</div>

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  
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/  
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’

Request

Parameters: {“user”=\>{“name”=\>“al”, “password\_confirmation”=\>“cl”,  
“password”=\>“bl”}, “commit”=\>“Add User”}

Show session dump

* * *

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

Response  
Headers: {“cookie”=\>[], “Cache-Control”=\>“no-cache”}

* * *

Any Ideas?
