example from Agile Development With Rails (4th ed.)