search for: passwordconfirm

Displaying 1 result from an estimated 1 matches for "passwordconfirm".

2006 Mar 29
2
save related models from one form
...gs_to in this fashion: customers has_many: identities identities belongs_to: customer identities has_many: people people belongs_to: identities Now, I have a form in which I would like to create db entries for the three tables. customers have a password field that needs to be equal to the params[:passwordconfirm], otherwise none of the models should be saved to the db. I also have some data checks (validated_presence_of and validates_uniqueness_of) in the models. If the data checks or password confirmation fails, I want that the form i displayed again so that the user can correct the errors. Else the dat...