demo_app tutorial from http://ruby.railstutorial.org/