I''ve seen previous posts finding ways to do multiple has_many :through assocations like the following class A < ActiveRecord::Base end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 end 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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The patch wasn''t applied yet, but the author created a plugin: http://code.torchbox.com/svn/rails/plugins/nested_has_many_through/ On Jun 7, 4:53 pm, Aryk Grosz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''ve seen previous posts finding ways to do multiplehas_many:through > assocations like the following > > class A < ActiveRecord::Base > > has_many:xs > has_many:ys, :through=>:xs > has_many:zs, :through=>:ys > > end > > 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? > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---