RailsCasts Pro episodes are now free!

Learn more or hide this

Self-Referential Association

#163 Self-Referential Association

May 25, 2009 | 14 minutes | Active Record, Controllers
Creating a social networking site often requires a self-referential association on the User model to define friends/followers. In this episode I show how to do exactly that.
  • Download:
  • source codeProject Files in Zip (99 KB)
  • mp4Full Size H.264 Video (21.1 MB)
  • m4vSmaller H.264 Video (14.8 MB)
  • webmFull Size VP8 Video (41.1 MB)
  • ogvFull Size Theora Video (30.3 MB)