AssociationFu helps create views for models that contain associations, letting you embed forms inside the parent form for each of the associated models. This is a convenience plugin and contains code obtained from various smart people (the good news is that these people are smarter than me so the code is smart).
Here's the deal: when you have a model that has one or more associations (collections), you may want to create a form that embeds those associations so that you can change the objects in those associations -- change their attribute values, add new objects or remove existing objects. You may even add a new object and then, just before saving your changes, change your mind and remove that new object. Easy!
The one caveat is that this plugin uses javascript (prototype.js) so you may not want to use it with your public interface, saving it for administration forms or internal apps.
Here's where you can git this plugin:
git://github.com/KevinTriplett/association_fu.git
More to come...!
Monday, April 7, 2008
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment