RailsCasts Pro episodes are now free!

Learn more or hide this

Find Through Association

#3 Find Through Association

Mar 08, 2007 | 2 minutes | Active Record
No need to pass foreign keys in find conditions, just do the find through a has_many association.
  • Download:
  • mp4Full Size H.264 Video (3.17 MB)
  • m4vSmaller H.264 Video (2.32 MB)
  • webmFull Size VP8 Video (6.6 MB)
  • ogvFull Size Theora Video (3.88 MB)