We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.

The latest version of the book is P7.0, released almost 4 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.

Key: Typo Tech. Error Suggestion Not a problem Next edition

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

(To find out what version you have, look at the copyright page, a few pages in from the front of the book. If it says (say) 'Second Printing', then here it'll be P2.0. If there are interim PDF releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF Paper Description Found in Fixed in
7-1
#43547: There isn't an option for the epub version. Any ways, on chapter 7 page 5 there are two links to figures "Flow of buyer pages" and "Flow of s...more...
P6.0
04-Jun-10
10
#47042: this book covers a lot less than version 3. I seem to be unable to find out about a lot of things such as STI, polymorphic model's, view sele...more...
P7.0
11-May-11
75

#48511: git-repoconfig is deprecated in favor of git config:

git config --get-regexp user.*

--Elfira

P7.0
13-Jan-12
76
#44649: On page 76 there is this code "ruby script/generate scaffold product \ title:string description:text image_url:string" It is expected that ...more...
P6.0
18-Aug-10
111
#49410: At the end of Iteration C1 after I click OK , I get the following error: ----------------------------------------------- NoMethodError in St...more...
P1.0
06-Jun-12
150

#48937: it can be found in controller of order in create action that is called when you place order

P7.0
13-Mar-12
168
#48235: In the first paragraph of section 11.4, the filename for the application controller is shown as "application.rb." I believe it should be "appl...more...
P7.0
08-Dec-11
190
#48240: In the listing at the top of page 190, for application.rb, I believe there's a 'begin' keyword missing as the first line of the set_locale met...more...
P7.0
09-Dec-11
190
#48241: I believe the fourth line of the set_locale method should read: locale_path = "#{LOCALES_DIRECTORY}/#{I18n.locale}.yml" (notice there's ...more...
P7.0
09-Dec-11
193
#48312: In the listing of index.html.erb, change the text between the h1 tags to read 'layout.title' instead of 'main.title'. Also change the submit_...more...
P7.0
16-Dec-11
194
#48242: The es.yml and en.yml files are missing colons in front of most of the symbols. For example, "side:" needs to be ":side:". The symbols for h...more...
P7.0
09-Dec-11
194
#46284: If I put the code on that page into layouts/store.html.erb exactly as it is then current locale isn't selected in the locales select box. At l...more...
P7.0
21-Jan-11
279
#44645: Is it Rails 1.9 or Ruby 1.9? I don't think there is a Rails version 1.9. :-) "Finally, Rails provides an ActiveSupport::Multibyte::Chars an...more...
P6.0
18-Aug-10
280

#46291: "Seems to us that gooses is a verb, not a plural noun."

I'm not sure if this is appropriate.--Andrew Grimm

Dave Thomas says: (Dave Thomas: Then I feel sorry)
P7.0
22-Jan-11
302

#46568: "ruby script/generate migration load_users_data"
should read:
"ruby script/generate migration load_user_data"--Allan Kinnaird

P4.0
12-Mar-11
489
#45840: The following is incorrect: "If a before filter returns false, processing of the filter chain terminates, and the action is not run. A filt...more...
P7.0
30-Nov-10
510
#44683: you cover the building of an XML template for products but the output generated is not consumable by ActiveResource After a lot of research i...more...
P6.0
23-Aug-10
648

#46924: it seems that the command "ruby script/plugin install ssl_requirement" does not work. The result of this is "Plugin not found: ["ssl_requirement"]" ?!

P7.0
21-Apr-11
736
#45070: The index, on page 736, refers to a "breakpointer command" that is supposedly described on page 273. However there is no such reference on th...more...
P7.0
16-Sep-10

Stuff To Be Considered in the Next Edition

PDF Paper Description Found in Fixed in
0
#44558: Notice, I'm not completely sure as I'm really new in ruby. In the integration test "dsl_user_stories_test.rb" when defining the function us...more...
P6.0
11-Aug-10
18
#41589: ERb is defined as "Embedded Ruby" on p. 18 but is not in the index, please add to index. P2.0 printing April 2009 Version: 2009-4-7, please a...more...
P1.0
21-Nov-09
114
#42012: To produce the sans-serif cart title shown in the "screen-shot", the css for .cart-title needs to be "font: bold 120% sans-serif;". ("120% bo...more...
P4.0
05-Jan-10
137
#42022: For those who did the additional problem of linking using the book image. Here is the AJAX code to perform the same task as the new AJAX butto...more...
P1.0
08-Jan-10
151
#43712: In save_order method no check for cart's emptiness. i may go to checkout and press "empy cart" button. and after pressing "place order" button...more...
P6.0
11-Jun-10
171
#41917: As of the end of section 11.2 the admin_controller function is not working as intended in the case of erroneous logins. Having a seperate t...more...
P4.0
26-Dec-09
203
#41429: The i18n.t examples are leaving the colon out of the message, for example: <%= form.label :name, I18n.t('checkout.name') + ":" %> This sho...more...
P1.0
14-Nov-09
204
#41924: On the use of UTF-8, HTML and Javascript... Page 194, section 13.1 states: "if you do this, just make sure that your editor is configured f...more...
Sam Ruby says: There's a bug report on Rails open on this: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2409-activerecord-double-escapes-error_messages_for I plan to address this in the next edition.
P4.0
26-Dec-09
378
#43114: The section describing STI on page 377 lists the hierarchy of model objects. There is followed by fugure 19.2 at the top ofpage 378 followed ...more...
P5.0
06-May-10
412
#42273: In the discussion of how to build a callback class and express it throughout all models, I think that a critical question is not addressed: ...more...
P5.0
08-Feb-10
506
#43519: link_to(:action => :delete, :confirm => "Are you sure?") will prevent spiders from executing the delete request, because a GET instead of (POS...more...
P6.0
31-May-10
523

#42994: In figure 23.1 I'd imagine that #5 should actually reference a create action rather than a save action for it to follow convention.--Zack Hubert

P5.0
27-Apr-10
560
#44050: The last part of the section on caching needs cleanup or more explanation: ActionController::Base.cache_store = <one of the following> ....more...
P6.0
11-Jul-10
563
#42439: I think that this chapter is off from the general character and tenor of the rest of the book. It feels very much "bolted-on." The chapte...more...
P5.0
11-Mar-10
632
#42401: The description of nested resources in ActiveResource is missing a critical piece. The LineItem model in depot_client is not shown, most impor...more...
P5.0
02-Mar-10
657
#41595: The instructions for creating the empty git repository assume git has been installed on the git server. But the reader was not told to instal...more...
P1.0
22-Nov-09