Following Michael Hartl's Ruby on Rails tutorial at http://ruby.railstutorial.org/book/ruby-on-rails-tutorial