Chapter2 of Mr Micheal Hartl's http://ruby.railstutorial.org/chapters/a-demo-app#top