Code for the book Crafting Rails 4 Applications