Displaying 1 result from an estimated 1 matches for "pwdmismatch".
Did you mean:
ptrmismatch
2006 Mar 29
2
save related models from one form
...ever I would need some help in
finding out whats wrong. Please help me!
def create_data
@customer = Customer.new
@identity = Identity.new
@person = Person.new
@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
b...