Sweet! The following also works if defining a do_new action, which I
was doing to automatically generate passwords.
def do_new
super
temp_password = Digest::SHA1.hexdigest("#{Time.now.to_s}saltysalt")
[0,8]
@record['password'] = temp_password
@record['password_confirmation'] = temp_password
active_scaffold_config.columns[:password].description = 'This
password has been automatically generated for you.'
end
P.S. You left in an uneeded ".create" in your posting. I just wanted
to call it out for any newbs coming across this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---