Following the book at railstutorial.org