complete ch7 of railstutorial.org