From "Rails 3 in Action"