chapter 3 and above of railstutorial