Okay, note for sanity, I think I see. You noted only on the plain has_many's since it is only related to that join table. Thus the negative result concern that I had is only pertinent to the second relationship: "has_many :______, :through => :city_counties, :accessible => true"
-George On Jun 25, 9:57 pm, Matt Jones <[email protected]> wrote: > On Jun 25, 2011, at 2:40 PM, ylluminate wrote: > > > Okay, sorry about that. Inexperience with the has_many :through > > apparently... Found that I needed to have a relationship with the > > city_county model as well so that it would simply have a > > "has_many :city_counties" before each of the has_many ____, :through > > => :city_counties for both the city.rb and county.rb models. > > Yep. You may also want :dependent => :destroy on both of the plain has_manys, > so that the join table (city_countries) records are cleaned up when an > associated record is deleted. > > --Matt Jones -- 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.
