Rails chapter3

chapter 3.1 ~ chapter 3.5