Following the tutorial on http://ruby.railstutorial.org