From Agile Development with Rails 4 by Sam Ruby