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