rails 4 in action - chapter 2