Ruby-on-Rails: Multiple has_many :through possible?

后端 未结 4 1820
感情败类
感情败类 2020-11-29 23:23

Is it possible to have multiple has_many :through relationships that pass through each other in Rails? I received the suggestion to do so as a solution for ano

4条回答
  •  情深已故
    2020-11-30 00:26

    I found this blog entry to be useful: http://geoff.evason.name/2010/04/23/nested-has_many-through-in-rails-or-how-to-do-a-3-table-join/

提交回复
热议问题