Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
2.2 1st code sample |
I called it serious, because the code just won't work in Rails 2.0 |
Anonymous | Oct 23, 2008 | |
2.2 First code block |
In the first code block, the current version of rails enforces security with an authentication token. The default call produced here is a post which triggers an InvalidAuthenticityToken error. |
Wayne Andersen | Jan 31, 2009 | |
Printed | Page 24 Call with Prototype example |
The default method for Ajax.Request is 'post'. This needs to be sent as a 'get' request, so method:'get' needs to be included in the options hash. |
Paul Krause | Dec 02, 2009 |
Printed | Page 25 Update with Ajax.Updater example |
Again, the default method for Ajax.Updater is 'post'. This needs to be sent as a 'get' request, so the options hash {method:'get' } needs to be appended to the arguments. |
Paul Krause | Dec 02, 2009 |
Printed | Page 34, 37 First example source on the page |
The code only renders the time and one doesn't get a chance to click on a link. Thus, it seems to be an issue in the controller action on page 34: |
Anonymous | May 21, 2008 |
Printed | Page 34 Chapter3Controller |
"sleep" takes a time in seconds as an argument. The printed version of get_time will generate an error (in Ruby 1.9 at least). I think it should be corrected to: |
Paul Krause | Dec 02, 2009 |
Printed | Page 39 First code block |
The link_to_remote in the first code block returns the most of the html page of /chapter3/reverse.html.erb rather than the reverse of what is entered in the input. |
TW Scannell | Jan 31, 2010 |
Printed | Page 40, 41 Forms section (p.40) and index.rhtml (p.41) |
I am not sure if this is a change in Rails 2.0, but this usage of form_tag will not work. |
Paul Krause | Dec 03, 2009 |
Printed | Page 45 Custom Helpers |
as of Rails 2.3.5, button_to_remote has been defined as part of ActionView::Helpers::PrototypeHelper |
TW Scannell | Feb 03, 2010 |
Printed | Page 55 Example at top of page |
"chapter3" is the wrong controller (the action has just been added to "chapter4_controller"). Infact, the controller does not need to be explicitly referenced in this case. |
Paul Krause | Dec 03, 2009 |