On Miércoles, 30 de Septiembre de 2009 22:30:09 Rodrigo Saad escribió: > Helllo, > > I am using ActiveScaffold(checkout yesterday) with Rails 2.3.4 and the > "create another" button for has many associations is not working on > the create form. For example, i have clients, and each one of them may > have several address: > > class Client < ActiveRecord::Base > has_many :addresses > end > > class Address < ActiveRecord::Base > belongs_to :client > end > > > On the Client create form, if i press the "create another" button for > address (subform), i got the following error: > "ActiveRecord::RecordNotFound (Couldn't find Client with > ID=edit_associated):". By the way, for the update form, everything > works fine. > > Anyone have an idea?
I think it's a routing problem, have you added :active_scaffold => true to your map.resources? -- 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 -~----------~----~----~----~------~----~------~--~---
