sample_app from railstutorial.org (3rd edition)