see http://japanese.railstutorial.org/chapters/a-demo-app