speedin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Mar-12 20:51 UTC
Undefined method: hashed_password ?
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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
