Ruby on rails - sample app from book