Displaying 1 result from an estimated 1 matches for "secure_password".
2006 Jun 09
0
difference between @secure_password, secure_password
Hello,
I have a User object that extends ActiveRecord::Base.
And I have the following defined in it:
....
after_validation :crypt_password
...
def crypt_password
# write_attribute("secure_password", User.encrypt(password))
self.secure_password = User.encrypt(password)
end
..
And this works. Where I am getting confused about is the difference
between the following:
secure_password,
@secure_password
self.secure_password
Because these versions of crypt_password method d...