Update code for project Rails4-Depot; Chapter 9 of book Agile web development with rails4