Following instructions from http://ruby.railstutorial.org/