Rails chapter5

rails tutorial chapter ~5.6