This is from chapter 3 of the railstutorial book. It is called sample_app.