sample application from railstutorial.org