working examples from ruby on rails tutorial 2nd ed book