Example from Agile Web Development with Rails (4th ed.)