Agile web programming with rails 4 chapter 2