public
Description: a sample rails app with a complex, multi-model form using skinny controllers, transactions and valid XHTML
Home | Edit | New

Home

This started out as a demo app, and I’m slowly extracting the interesting bits into a plugin named atomic_saves.

Basically, active record associations do a poor job of managing atomic saves outside of migrations. Atomic saves require you to keep track of the which objects are marked for deletion and marked for addition, and then add them and remove them all at the same time.

This plugin will help to take care of this on the model side, and provide documentation about how to create the forms that support this.

Last edited by zilkey, Thu May 08 08:09:45 -0700 2008
Home | Edit | New
Versions: