Sergio, Thank you for your reply.
> 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. I think I'm using AJAX, although I don't know what other options I can choose. I verified the minimum case as follows. +++ class Topic < ActiveRecord::Base has_many :topic_items end class TopicItem < ActiveRecord::Base belongs_to :topic end class TopicsController < ApplicationController active_scaffold :topics do | config | end layout 'active_scaffold' end class TopicItemsController < ApplicationController active_scaffold :topic_items do | config | end layout 'active_scaffold' end +++ 1)open http://localhost:3000/topics -> A list of Topic records appears and it contains "Topic items" column 2)click a "Topic items" column value of one of the Topic records -> nested scaffold opens and a list of TopicItem records appears in it 3)click "Edit" link of one of the TopicItem records -> an Update form appears 4)click "Update" button in the Update form -> the nested scaffold and the original Topic list disappear, and a list of TopicItem records (which were listed in the nested scaffold after the step 2) appears at the top level of the page Is this the expected behavior? I'm using Rails 2.3.4 and the latest revision of ActiveScaffold. Thanks in advance, ebi 2009/11/27 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: > 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. > > > -- 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.
