Combining Numerous Models Errors

Hi There,

I have a form which interacts with numerous models (which are all
related). I use the validates_associated to check that all the related
models are valid - however that just displays a generic error saying
that one of the related models is not valid.

Is there a correct rails way to create a single ‘error’ array of all
models errors? I see several hand rolled attempts but surely this isn’t
a unusual request?

Many thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs