Re: Noob question .each problem

Frederick Cheung
2010-01-04T17:34:57Z

On Jan 4, 4:53 pm, radu puspana
<radupusp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> On Jan 4, 6:22 pm, Frederick Cheung
<frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 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