From the learn-rails book.