you shouldn't need to set the link. It should work by default. doesn't it work that way? with a clean active scaffold in controller: ReportsController active_scaffold end
On Fri, Feb 10, 2012 at 7:40 AM, Ole Rummel <[email protected]>wrote: > Hi, > > I am used to the default enabling of nested scaffolds, but in the > following situation I got a very strange issue: > > MODELS: > Report < ActiveRecord::Base > has_many :periods, :dependent => :destroy > has_many :report_graphs, :dependent => :destroy > > Period < ActiveRecord::Base > belongs_to :report > > ReportGraph < ActiveRecord::Base > belongs_to :report > > Whenever I start up the server the nested scaffolds at localhost:3000/ > reports for Period and ReportGraph are working fine. As soon as I > refresh the page though, the former does not respond anymore while the > latter still does. > > In ReportsController I tried > config.nested.add_link :periods > > and also > config.columns[:periods].set_link('nested', :parameters => > {:associations => :periods}) > > neither of which worked. Any ideas? > > > -- > 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.
