Forum: Ruby on Rails Re: Credit card validation problem => sentry

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
brutyn_nick (Guest)
on 2005-11-18 12:19
(Received via mailing list)
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??
brutyn_nick (Guest)
on 2005-11-18 15:17
(Received via mailing list)
already fixed :)

database field was VARCHAR(30), to small i think, thats why i didnt get
value, changed it to TEXT
This topic is locked and can not be replied to.