Forum: Ruby on Rails Rails 2.3 nested forms and transactions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bbf55d9960b9905e57621d5da6727b2d?d=identicon&s=25 Neal L (Guest)
on 2009-04-04 17:55
(Received via mailing list)
Hi all,

Does anyone know if the new nested object forms in Rails 2.3 supports
transactions on save? (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!
This topic is locked and can not be replied to.