When I debug the app by placing a breakpoint right after the assigment
operation
in crypt_password, and ask for values:@secure_password returns ‘nil’
but
secure_password returns the encrypted password…

Which is very puzzling.
First of all, I thought @ was used for instance variables. So@secure_password should be the one with the encrypted value assigned not
secure_password…

Let’s forget that…If secure_password contains the encrypted value as I
see on the console, why would secure_password = User.encrypt(password)
call not do what I expect it to do?