sample app from railstutorial