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??
on 2005-11-18 11:19
on 2005-11-18 14:17
already fixed :) database field was VARCHAR(30), to small i think, thats why i didnt get the value, changed it to TEXT