rails many to many self join

后端 未结 4 2056

could some one point me to the right direction:

I try to build a model for rails that build up the following:

ClassA -id

ClassA has a relation to

4条回答
  •  無奈伤痛
    2020-11-30 04:42

    This post has a good working example: http://blog.hasmanythrough.com/2007/10/30/self-referential-has-many-through

    There is a related question here as well: Problem with self-referential has_many :through associations in Rails

提交回复
热议问题