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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
334ae822566107a2ea2b7a7cb88bd1d6?d=identicon&s=25 brutyn_nick (Guest)
on 2005-11-18 11:19
(Received via mailing list)
hey,
i have used the 'sentry' validation
http://sentry.rubyforge.org/

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
orginal
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,....

  model.save
# password is encrypted and saved to crypted_password in the database,
# model.password is cleared and becomes a virtual field.

anyone can help??
334ae822566107a2ea2b7a7cb88bd1d6?d=identicon&s=25 brutyn_nick (Guest)
on 2005-11-18 14:17
(Received via mailing list)
already fixed :)

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