# Rails 2.3 nested forms and transactions

**URL:** <https://www.ruby-forum.com/t/rails-2-3-nested-forms-and-transactions/164715>\
**Category:** Rails\
**Created:** [April 4, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/rails-2-3-nested-forms-and-transactions/164715 "2009-04-04T17:55:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neal\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/74df32/32.png) [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Post date:** [April 4, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/rails-2-3-nested-forms-and-transactions/164715/1 "2009-04-04T17:55:17Z")

</div>

Hi all,

Does anyone know if the new nested object forms in Rails 2.3 supports  
transactions on save? ([http://guides.rubyonrails.org/](http://guides.rubyonrails.org/)  
2\_3\_release\_notes.html#nested-object-forms)

Supposing you had a form that let users of an app create an account  
and the admin user account in the same screen, nested object forms  
seem like a good fit. However, creating the customer account and the  
user need to be done as a transaction (you wouldn’t want a customer  
without an admin user or vice versa).

How is this handled? Is this the default? Does it need to be  
implemented in a :reject\_if proc?

Thanks!
