On Viernes, 27 de Noviembre de 2009 11:38:01 EBIHARA, Yuichiro escribió: > Hi, > > I have two tables with a one-to-many association and am using a nested > scaffold to manipulate the child table. > > When I open the nested scaffold, click "Edit" of one of the child > records and click "Update", the nest gets canceled and only child > records are listed in the new page. > The URL is as follows. > > http://localhost:3000/topic_items?authenticity_token=Y5ntDJLH5qCLU%2F2XfKhy >As0IWh0QqG0Ey0%2FhSNr9Kjo%3D&eid=c68ddffe78a3e98524094e5213eab3d0&nested=tru >e&parent_column=topic_items&parent_model=Topic > > I want the page to stay nested even after update. > How can I configure?
Do you open the edit form using AJAX? In that case after update you will be redirected to a nested list, it's the same view when you open the nested scaffold in a new page. To get the behaviour you described you will have to override some responses and views, to redirect to parent list and open a scaffold using JS. -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
