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

后端 未结 4 1831
感情败类
感情败类 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:16

    There is a plugin that solves your problem, take a look at this blog.

    You install the plugin with

    script/plugin install git://github.com/ianwhite/nested_has_many_through.git
    

提交回复
热议问题