On Tuesday 09 March 2010 10:54:32 Sergio Cambra .:: entreCables S.L. ::. wrote: > > Sergio, how exactly did this fix the problem? > > I think I have guessed the problem: > plural associations may not actually appear in the params if all of the > options have been unselected or cleared away, so we cleared plural > associations if they aren't in the params and form_ui is set. > > HABTM aren't shown in subforms even when form_ui is set. So excluding those > associations from config.subform.columns fixes the problem. > > If you don't want to update an association when editing the record in a > subform (for example, you don't want update reactivities or applications in > a catalog item when you updates an application), remove them from the > subform columns: > # CatalogItemsController > config.subform.columns.exclude :reactivities, :applications > > Anyway, I have removed exclussion of HABTM from subform, because :select UI > works for HABTM in subforms now. If you update your AS copy those > associations will be shown in the subform and they shouldn't be cleared.
I updated AS and editing works fine now. Thanks again! ben -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
