# Validation orders

**URL:** <https://www.ruby-forum.com/t/validation-orders/174436>\
**Category:** Rails\
**Created:** [August 26, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/validation-orders/174436 "2009-08-26T18:53:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 26, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/validation-orders/174436/1 "2009-08-26T18:53:27Z")

</div>

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
