sample_app based on http://ruby.railstutorial.org