On Jan 4, 4:53 pm, radu puspana <[email protected]> wrote: > On Jan 4, 6:22 pm, Frederick Cheung <[email protected]> > wrote: > > Sry for bothering you agan but shouldn't it be : > user.detect {|current_user| current_user.hashed_password == > User.encrypt(password,current_user.salt)} reather than user.detect {| > current_user| current_user== User.encrypt > (password,current_user.salt)} ??. > == means a condition if i recall correctly. > because the string that comes out of User.encrypt > (password,current_user.salt)} should be compared with something in the > current_user, namely hashed_password, not the object refered by the > variable current_user, right?
correct. Fred -- 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.

