# Validation on nested models

**URL:** <https://www.ruby-forum.com/t/validation-on-nested-models/189476>\
**Category:** Rails\
**Created:** [June 1, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/validation-on-nested-models/189476 "2010-06-01T15:46:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mlle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/eada6e/32.png) [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Post date:** [June 1, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/validation-on-nested-models/189476/1 "2010-06-01T15:46:07Z")

</div>

I use javascript to insert a nested model form into a page. If I use  
validation on the data entered and it reloads the page with an error  
displayed, the nested model form is gone because it’s not part of the  
original template.

Is there any way I can change it?

---

<div class="post-metadata">

**Author:** ![Mlle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/eada6e/32.png) [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/validation-on-nested-models/189476/2 "2010-06-17T16:22:41Z")

</div>

Hell Mlle,  
have you found a solution? I have the same exact problem…
