Following the tutorial at railstutorial.org