Forum: Ruby on Rails multiple layers nested has_many through

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
525128e48ca2b4c7fb6176ea166fccfd?d=identicon&s=25 Eric G. (gotskill10)
on 2007-06-07 21:53
I've seen previous posts finding ways to do multiple has_many :through
assocations like the following

class A < ActiveRecord::Base

   has_many :xs
   has_many :ys, :through=>:xs
   has_many :zs, :through=>:ys


I've seen a patch for this, however, I'm not doing edge rails, and I
couldn't copy over the code and actually get it working via a patch I
could put in my /lib directory.

Does anyone have some easy suggestions for getting my Rails 1.2 to
support this?
E12b4e08465871a3770f67ebc0abf805?d=identicon&s=25 Bernardo de Pádua (Guest)
on 2007-07-13 08:31
(Received via mailing list)
The patch wasn't applied yet, but the author created a plugin:

On Jun 7, 4:53 pm, Aryk Grosz <>
This topic is locked and can not be replied to.