Displaying 1 result from an estimated 1 matches for "undigestedpassword".
2006 Mar 29
2
save related models from one form
...@identity.customer = @customer
@person.identity = @identity
if request.post?
@pwdmismatch = false
@customer.attributes = params[:customer]
@identity.attributes = params[:identity]
@person.attributes = params[:person]
undigestedPassword = @customer.password
@customer.password = MD5.md5(undigestedPassword).hexdigest
begin
@customer.transaction(@customer, @identity, @person) do
@customer.save
@identity.save
@person.save...