the app tutorial from railstutorial.org