Rails 4: Curry Nation: Fix errors from the books, and make it work under Rails. 4.1.1