I am still trying to get sentry working to encrypt a couple of
attributes in the model. One of them is a password field and the other
I have crypted_password and crypted_ssn in the db.
In addition, I also have validates_uniqueness_of :ssn
Here is the problem… I get the error
MysqlError: Unknown column ‘ssn’ in ‘where clause’: SELECT * FROM
students WHERE (ssn = ‘123-45-6789’) LIMIT 1
THe stack trace shows that…
THe before_validation code in sentry is not substituting crypted_ssn
for ssn and also is not providing the encrypted value to the
validation code so that the table can be searched for uniqueness.
Can some one (please Rick shed some light on this for me? THank you