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.

Read more at the source