i am unable to find from where that @ record is coming I am trying the Active Scaffold Demo example
Please help me in this On Tue, Nov 11, 2008 at 2:36 PM, Antonio Bardazzi Multicore-Sistemi.com < [EMAIL PROTECTED]> wrote: > > I'm testing git commit d16b4f3 (mongrel/passenger development/ > production) > > Subform instance has @record already defined and edit_associated line > 9 never triggers: > > @record ||= @column.association.klass.new > > So @record.class will be always the @parent_record.class > > Where does @record instance come from? > > For now I patch with: > > [EMAIL PROTECTED] ||= @column.association.klass.new > if params[:associated_id] > @record = > @column.association.klass.find(params[:associated_id]) > else > @record = > @column.association.klass.new > end > > Many thanks, > Antonio > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
