Following Railstutorial book.