sorry, read back a bit and think this says what I needed to know. > problem is that this results in an additive list, where users can keep > making selections. What I need is a regular drop down, where they can > only make one selection. My reading about accessible => true, is that > it does not work on a has_one. Is this something I could force in the > view?
this makes it sound like you don't really want a join table but instead a belongs_to relationship (or two). Unless you're mistaking what this code is doing in the view: > class A > has_many AB > has_many B, :through AB > has_many D, :through => AB, :accessible => true this tells it to allow class A to add D's through the AB join table. each addition is not another D on a single link, but another AB join (though B would be nil). if you want there to be possible multiple relationships for each A and B, but a selection for D, you want the :accessible => true on the join table like this: class A has_many AB, :accessible => true # this will let A's form, create AB's which will have the dropdown selectors for B and D has_many B, :through => AB has_many D, :through => AB # not accessible -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
