Rails polymorphic many to many association

后端 未结 4 394
无人及你
无人及你 2021-02-04 21:39

I\'m trying setup a generic sort of web of related objects. Let say I have 4 models.

  • Book
  • Movie
  • Tag
  • Category

I would lik

4条回答
  •  无人及你
    2021-02-04 22:09

    I think the only way to do it exactly as you described is the join tables. It's not so bad though, just 6, and you can pretty much set-and-forget them.

提交回复
热议问题