chapter 2 in the tutorial http://ruby.railstutorial.org/chapters/a-demo-app#top