On Tue, Aug 17, 2010 at 22:58, oliver torres <[email protected]> wrote:

> it works great in the video but for me i get this error
> undefined method `password_confirmation' for #<User:0x1036485d0>
>
> how come that password_confirmation method is not defined?
> any tips?

Most likely the method/data/whatever is not defined because the actual
final saved user, does not need to store it.  It's only useful when
[re]setting the password.  Off the top of my pointy little head, I'd
guess a before_save filter (to check whether it matches the actual
password, and if so then remove it, else flag the record invalid) is
what you want.

-Dave

-- 
Specialization is for insects. -RAH  | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog:  http://dare2xl.com | Play: http://davearonson.net
* * * * * WATCH THIS SPACE * * * * * | Ruby: http://mars.groupsite.com

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to