Application from chapter 2 of railstutorial.org