finished chapter 6 of railstutorial