Validation orders

Hi There folks,

I am using validates_associated to make sure some child models are valid
before saving the parent. However I want to do some extra validation
AFTER the child models are valid in its parent. For instance in each
child it has a date field - I need once the child is valid to compare
the dates of each of the children to each other to make sure one is not
bigger than another.

However right now it seems the validates_associated happens AFTER all
validation of the parent

Any ideas?

Paul

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