From Ch. 2 in http://ruby.railstutorial.org/chapters/a-demo-app?version=3.2#top