Railscasts – Move Find into Model
Published June 17th, 2009 Under Coding, Open Source Tools | Leave a Comment
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.
http://railscasts.com/episodes/4-move-find-into-model