a sample_app learning from http://ruby.railstutorial.org/