From the rails 4 in action book