RoR tutorial chapter3 and beyond