Re: Credit card validation problem => sentry


i have used the ‘sentry’ validation

in the model i did
generates_crypted :cc_number, :mode => :symmetric
and changed in the database cc_number to crypted_cc_number
all this work when saving(creating) a new entry, but when i want the
value back for display, it doesnt work.

how do i get the value with, .cc_number or .crypted_cc_number,
in the doc it says .cc_number,…

password is encrypted and saved to crypted_password in the database,

model.password is cleared and becomes a virtual field.

anyone can help??


already fixed :slight_smile:

database field was VARCHAR(30), to small i think, thats why i didnt get
value, changed it to TEXT