demo_app tutorial from railstutorial.org