following a book on rails