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.
