Forum: Ruby on Rails Rails 2.3 nested forms and transactions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Neal L (Guest)
on 2009-04-04 19:55
(Received via mailing list)
Hi all,

Does anyone know if the new nested object forms in Rails 2.3 supports
transactions on save? (

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?

This topic is locked and can not be replied to.