How do I do reflexive self-join relationships in ActiveRecord?

后端 未结 1 990
暗喜
暗喜 2020-12-17 04:15

I\'m trying to implement a social networking style friendship model and I didnt have much much luck trying to figure out the plugins available out there. I think I\'ll learn

1条回答
  •  时光说笑
    2020-12-17 04:56

    I'm surprised no one has pointed to the recent Ryan Bates's screencast on the topic :)

    Hope this helps!.

    Excerpt from Ryan '... requires a self-referential association on the User model to define friends/followers'

    0 讨论(0)
提交回复
热议问题