# AutosaveAssociation - Saving nested models without validation

**URL:** <https://www.ruby-forum.com/t/autosaveassociation-saving-nested-models-without-validation/160537>\
**Category:** Rails\
**Created:** [February 17, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/autosaveassociation-saving-nested-models-without-validation/160537 "2009-02-17T15:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evensoul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9c0ed/32.png) [@evensoul](https://www.ruby-forum.com/u/evensoul)\
**Post date:** [February 17, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/autosaveassociation-saving-nested-models-without-validation/160537/1 "2009-02-17T15:30:48Z")

</div>

Hi,  
I’m using Rails 2.3 RC1. I’ve noticed that calling save(false) on the  
model which  
accepts\_nested\_attributes\_for :another doesn’t create the nested model  
if  
it’s invalid. It does save it if it’s been previously created though.  
Is this known? If necessary I can prepare a minimal example.

Marko

---

<div class="post-metadata">

**Author:** ![evensoul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9c0ed/32.png) [@evensoul](https://www.ruby-forum.com/u/evensoul)\
**Post date:** [February 19, 2009, 11:49am UTC](https://www.ruby-forum.com/t/autosaveassociation-saving-nested-models-without-validation/160537/2 "2009-02-19T11:49:21Z")

</div>

For the record, I’ve reported a bug with a failing test case on  
[http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2013-autosave-associations-dont-create-nested-models-without-validation](http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2013-autosave-associations-dont-create-nested-models-without-validation)

Marko
