Sergio is correct but...By correcting your structure AS should be able to do what you like.
If I understand you correctly... Where Contacts has one landlord. In you structure...You could just add the contacts attributes to LandlordContact, deleted the belongs_to :Contacts in that model, and then work with the standard AS nested features. Asking: Why do you have a joining table for Contacts, if it has no associations? This solution is essentially(cleaned up)...Just adding landlord_id to Contacts and changing models to: Landlord has_one :contact Contact belongs_to :Landlord -my 2 cents. coalex On Jul 22, 12:11 pm, Justin <[email protected]> wrote: > Oh well. Thanks for responding! > > On Jul 22, 3:10 am, "Sergio Cambra .:: entreCables S.L. ::." > > <[email protected]> wrote: > > 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.
