2nd tutorial from http://ruby.railstutorial.org/chapters/a-demo-app#top