I am trying to figure out how to display model validation error messages
a multiple record form.
My form is for setting up new accounts and collects information for two
models - Accounts and Users.
My create method collects the parameters from the form and adds them to
Account object and a User object then runs account.valid? and
If it’s valid it updates the models ok, if not valid I get error
for accounts to display on my form page but not user validation error
messages. I have validations set in both models.
I would like to collect all the validation error messages from both
and put them in one error display box at the top of the form and then
highlight any input boxes that need to be fixed.
Any ideas how to do this?