Learning ruby on rails chapter 2