Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Move Find into Model

#4 Move Find into Model

Mar 12, 2007 | 2 minutes | Active Record
Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.
  • Download:
  • mp4Full Size H.264 Video (2.84 MB)
  • m4vSmaller H.264 Video (2.08 MB)
  • webmFull Size VP8 Video (5.72 MB)
  • ogvFull Size Theora Video (3.22 MB)