small medium large xlarge

Errata for Rails Recipes


The latest version of the book is P1.0, released over 3 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: B6.0 (27-Mar-12)
PDF page: 1
Paper page: 292
Why isn't the book written using MVC approach. Everything Rails, from tutorials to screencasts use MVC so that readers can see how every piece fits to...more...
  • Reported in: P1.0 (09-Apr-12)
PDF page: 10
The link to the Pragmatic Programmers Rails Recipes forum is the old forum. The forum id is 189, not 8. (I couldn't post the corrected url - the form ...more...
  • Reported in: B5.0 (14-Feb-12)
PDF page: 22

scope :available, where(:available => true)

should be

default_scope :available, where(:available => true)--Pavel Kotlyar

  • Reported in: P1.0 (04-Apr-12)
PDF page: 54
Recipe: 10 - "Connect to Legacy Databases" Code is in a CDATA section. When you show how to find and destroy a comment (from the Rails console) th...more...
  • Reported in: P1.0 (04-Apr-12)
PDF page: 64
Recipe: 14 - "Create Self-referential Many-to-Many Relationships" You refer to a Friend model in the phrase "...given the existence of both a Perso...more...
  • Reported in: P1.0 (14-Dec-12)
PDF page: 76
The example for this recipe doesn't do anything with the registration form once an event is created which is the whole purpose of the recipe. The...more...
  • Reported in: P1.0 (27-Apr-12)
Paper page: 140
Recipe 38 - the last code example on the page contains the line 'songs.sum(&:duration_in_seconds)', which should be 'songs.sum(:duration_in_seconds)'-...more...
  • Reported in: P1.0 (08-Dec-12)
Paper page: 236

The example orders_controller.rb should have the lines

format.csv { instead of format.csv do
} instead of end--Tommy Pollák

  • Reported in: P1.0 (06-Feb-13)
PDF page: 237
In the paragraph under the orders_controller.rb code, the final sentence says: "We use the generate() method on the CSV class to create a CVS generato...more...
  • Reported in: B6.0 (03-Apr-12)
PDF page: 247
Recipe: "Create Your Own Ruby Gem" After you show the .gemspec file you say "we’ve told RubyGems that our library requires a version of HTTParty in...more...
  • Reported in: P1.0 (25-May-12)
PDF page: 267

"You’ll notice the call to isolate_engine()." should be "... isolate_namespace().".--Eito Katagiri