search for: validated_presence_of

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

Did you mean: validate_presence_of
2006 Mar 29
2
save related models from one form
...y: 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 data shoud be saved to the db. If I input data in all required fields all is fine, but... My problems are: 1. If...