ch2 of railstutorial