On Miércoles, 21 de Julio de 2010 22:57:20 Justin escribió: > I realize this should be a common task, but I've been having a very > hard time searching for the answer. > > I have three models: > > Landlord > has_many :landlord_contacts > > Contact > # no associations, just attributes > > LandlordContact > belongs_to :landlord > belongs_to :contact > # has a "title:string" attribute as well. > > On my Landlord creation form, I am able to get 'LandlordContact' to > render the 'title' field and a select menu for the contact. I don't > want a select menu, I want the Contact column in this subform to > render all the fields for a new contact. Can this be done?
No, ActiveScaffold doesn't support double nested subforms, you will have to override contact field by yourself and maybe put some code in create and update actions. I'm trying to add support for multiple levels of subforms. Layout needs some improvements, and create another button doesn't work. -- 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.
