Errata
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question
| Version | Location | Description | Submitted By | Corrected |
|---|---|---|---|---|
| Printed | Page ? Example code, Chapter 1 |
Originally submitted in Head First Rails book forum: Note from the Author or Editor: |
Anonymous | |
| Safari Books Online | 4-5 answer to list items 2 and 3 |
Answers to questions 2 & 3 are reversed Note from the Author or Editor: |
Ron Bingham | |
| Safari Books Online | 20 3rd paragraph |
"separated according to it's function" |
Kathy Jacobson | |
| Safari Books Online | 30 Inside the man's talking bubble |
'suposed' should be changed to 'supposed' Note from the Author or Editor: |
Brett Goulder | |
| Printed | Page 36 Block with code added to show.html.erb |
Bold code shows email_address; should be phone. Note from the Author or Editor: |
sean kearney | |
| Printed | Page 36 1st paragraph |
An 'is' is missing after 'it': "once the code has been generated it the developer's ..." |
Gabriele Bartolini | |
| Printed | Page 51 DB Table 'ads' on right side of page |
There is an arrow with text "This is the generated primary key." which points to somewhere where it could be misunderstood. It should refer to only the 'id'-row. It could also be read and understood that it refers to all three rows ('id', 'created_at' and 'updated_at') which are surrounded. Note from the Author or Editor: |
Mike Just | |
| Printed | Page 54 2nd paragraph: text |
Text: ..."If someone asks for for ad#3..." |
Mike Just | |
| Printed | Page 60 10th question |
The 10th question is in singular form, although it should be in plural. Note from the Author or Editor: |
Anonymous | |
| Safari Books Online | 61 3rd line of code |
missing single quote at end of line: |
Kathy Jacobson | |
| Printed | Page 61 Diagram on the right showing contents of the view directory |
The page templates shown in the diagram all end with *.html.rb extension. Shouldn't they be *.html.erb since they will be processed by ERb? Note from the Author or Editor: |
Winston Tsai | |
| Printed | Page 70 'Congratulations!' paragraph |
"What's more, you taken a peek..." should be Note from the Author or Editor: |
K. Oster | |
| Printed | Page 72 note for 'params[:id]' in 'Pool Puzzle Solution' |
"...user is asking for /ads/3, ..." should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 73 note for 'All Ads' webpage screen shot |
'An index pag.' should be 'An index page' Note from the Author or Editor: |
K.Oster | |
| Printed | Page 75 Routing example |
One forward slash missing from the routing example if we want to stay consistent. Second line should read /ads/ instead of ads/ Note from the Author or Editor: |
Anonymous | |
| Safari Books Online | 82 answer #2 |
It doesn't keep it's own |
Kathy Jacobson | |
| Safari Books Online | 85 first line |
'form_for' helper |
Kathy Jacobson | |
| Printed | Page 89 first block of code: line 2 |
(Beyond Scaffolding) |
hing hoo bird | |
| Printed | Page 93 Lower 3rd |
Download this! Note from the Author or Editor: |
Anonymous | |
| Printed | Page 95 screenshot |
I downloades and uses the layouts/ads.html.erb as explained in chapter 2. However when I later created the form on page 112 it breaks the layout, so that the content runs down into the footer. This despite of the thet fact that <%= yield %> is in <div id="content">? Note from the Author or Editor: |
Anonymous | |
| Printed | Page 111,112 1st paragraph |
The <% form for %> tag is missing an underscore. |
Winston Tsai | |
| Printed | Page 114 Note for '@ad = nil' |
'...no other attributes avaialble, ..." should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 114 diagram |
Note from the Author or Editor: |
farida memon | |
| Printed | Page 115 (3) in the diagram |
"new html.erb" should be "new.html.erb" |
Akira Matsuda | |
| Printed | Page 140 Test Drive screenshots |
The second and fourth screen shots should be switched. Note from the Author or Editor: |
K.Oster | |
| Printed | Page 143 line 1 of code box |
The class should read"AdsController" and not "AdController" |
Raymond Jenkins | |
| Safari Books Online | 160 next to last paragraph |
"requires needs a model object to work." Note from the Author or Editor: |
Kathy Jacobson | |
| Printed | Page 161 bottom |
One of the fridge magnets has a typo. The magnet "search_string" should be :search_string Note from the Author or Editor: |
Anonymous | |
| Printed | Page 161 magnets |
The magnets offer the choice of "search_string", but in the solution on the next page, the answer is :search_string. |
Anonymous | |
| Printed | Page 164 Under "Ready Bake Code |
The URL to download the "ready bake code" ends in books/rails. The correct URL ends in books/hfrails. |
Anonymous | |
| Printed | Page 166 3rd paragraph |
The paragraph starts with: WIth a model form ... Note from the Author or Editor: |
Anonymous | |
| Printed | Page 166 page title |
params is not an Array but a Hash. Note from the Author or Editor: |
Akira Matsuda | |
| Printed | Page 169 Last paragraph |
'...the string the user is searching form.' should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 170 Answer to first question of 'there are no Dumb Questions' |
'...no object to with a single...' should be Note from the Author or Editor: |
K.Oster | |
| Safari Books Online | 173 2nd paragraph |
"finder for each of it's attributes" |
kajaco2 | |
| Printed | Page 181 Second note for parameterized code statement |
'...and avoid a type security attack...' should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 190 Screenshot under 'Editing bad data' |
If the user is on the edit form page, shouldn't the button show 'Update' instead of 'Create'? Note from the Author or Editor: |
K.Oster | |
| Printed | Page 196 First paragraph |
'Some people are have been leaving...' should be Note from the Author or Editor: |
K.Oster | |
| Safari Books Online | 196 2nd paragraph |
"trainer's name need to completed" Note from the Author or Editor: |
kajaco2 | |
| Printed | Page 203 Last paragraph |
'...on new adds were completed,...' should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 220 Section heading |
'Coconut Airways need a booking system' should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 231 Sentence under show.html.erb flight page |
'The render call tell Embedded Ruby...' should be Note from the Author or Editor: |
K.Oster | |
| Printed | Page 242 3rd paragraph |
The word 'new' ("...to provide the new _seat_list.html.erb partial...") has the wrong font; it should have the same font as the preceding word, 'the'. Note from the Author or Editor: |
K.Oster | |
| Safari Books Online | 242 Code box, last note |
"Remove the list to" |
kajaco2 | |
| Printed | Page 242 1st paragraph |
New partial is given name _seat_list.html; thereafter it is referred to as _seat_list.html.erb |
Anonymous | |
| Printed | Page 246 last sentence |
Seat.find_all_for_flight_id(...) |
Ivo Balbaert | |
| Printed | Page 247 directory tree in the right side |
app |
Akira Matsuda | |
| Printed | Page 254 last figure right |
The figure should read: app models seat.rb |
Ivo Balbaert | |
| Printed | Page 265 first paragraph, line 4 |
The file ending .erb should be formatted the same way as the rest of the file name: app/views/flights/show.html.. Note from the Author or Editor: |
jhs06r | |
| Safari Books Online | 269 2nd paragraph |
Last line ends in "return it to the browser." |
kajaco2 | |
| Safari Books Online | 269 diag showing "Listing seats" and diag showing HTML code |
The heading for "Flight" should be deleted, i.e., instead of "Flight Name Baggage", it should be "Name Baggage". This can be achieved by deleting the line in the HTML code: |
Winston | |
| Safari Books Online | 275 6th answer (top of right column) |
"The presence of the value in a request show that a request..." |
kajaco2 | |
| Printed | Page 275 Answer to the questions[-2] |
The answer says the javascript_include_tag helper "adds a random number", but that's not true. Note from the Author or Editor: |
Akira Matsuda | |
| Printed | Page 275 Answer to the questions.last |
The answer describes as though a new copy of the asset file will everytime be downloaded as the users request the page, but it's untrue. Note from the Author or Editor: |
Akira Matsuda | |
| Printed | Page 287 2nd paragraph |
"But how do we make this the..." should be Note from the Author or Editor: |
Akira Matsuda | |
| Printed | Page 298 1st paragraph |
"you might expect that you will need to how to write JavaScript code" should be |
Akira Matsuda | |
| Printed | Page 299-300 First paragraph (both pages) and code magnets on page 299 |
"...the HTML in the 'notices' <div/>..." should be Note from the Author or Editor: |
K.Oster | |
| Safari Books Online | 302 Near the top |
It would be helpful to say which file this is from. I've assumed _new_seat.html.erb, since we are creating a new seat. Note from the Author or Editor: |
kajaco2 | |
| Printed | Page 304 the last paragraph |
"the page object will generate code to updates the notice" should be |
Akira Matsuda | |
| Printed | Page 304 Heading |
The heading says "The completed code CAN WILL now do several things" |
jhs06r | |
| Printed | Page 318 Last paragraph |
'...we used Ajax to download new version...' should be |
K.Oster | |
| Printed | Page 332 |
in the code: :root => "name" should read: :root => "data" |
Ivo Balbaert | |
| Printed | Page 335 4th A[nswer], 4th line |
"and you will found several places" should read |
Steve Hoogheem | |
| Printed | Page 349 2nd to last sentence |
'...and the XML bulder template...' should be |
K.Oster | |
| Safari Books Online | 351-2 1st paragraph (instructions) |
"you won't need to use all the snippets" Note from the Author or Editor: |
Kathy Jacobson | |
| Safari Books Online | 362 3rd paragraph |
"...our action will need to generated from a partial..." |
Kathy Jacobson | |
| Printed | Page 369 First paragraph |
"Once you've clicked on the save button, you're to the cut down..." |
David "Sweet" Robinson | |
| Printed | Page 371 bottom |
Why is params using strings here, params['latitude'] and param['longitude'], instead of symbols, params[:latitude] and params [:longitude]? Note from the Author or Editor: |
Steve Hoogheem | |
| Printed | Page 373 1st para |
On this page, the scenario described is that the form remains displayed on the same screen after "create" is submitted. However, this is not what happens - the user is actually sent to another screen via `redirect_to(@incident)`. Note from the Author or Editor: |
Cosmo Lee | |
| Safari Books Online | 377 top left corner |
The file tree containing the _new.html.erb file is missing the incidents directory. It should have this structure: |
Kathy Jacobson | |
| Safari Books Online | 380 Answer #2 |
"...calls all of it's own..." |
Kathy Jacobson | |
| Safari Books Online | 385 Answer #1 |
"That return true..." |
Kathy Jacobson | |
| Printed | Page 389 Bottom of page |
When updating this code using a route helper: Note from the Author or Editor: |
K.Oster | |
| Printed | Page 391 2 code examples near bottom |
I assume the correction on p. 389 replacing "edit_incident_url" with "edit_incident_path" carries forward to this page too, in both code examples near the bottom of the page. |
Steve Hoogheem | |
| Safari Books Online | 396 last paragraph |
"Well that works pretty like the new form did." |
Kathy Jacobson | |
| Printed | Page 397 Answer to first question |
'...harder to reader and...' should be |
K.Oster | |
| Printed | Page 397 5th A[nswer] & 7th A[nswer] |
Are PUT and POST swapped on this page? Note from the Author or Editor: |
Steve Hoogheem | |
| Printed | Page 398 bottom |
"Visti us here for details..." should be "Visit..." (?) |
Akira Matsuda | |
| Printed | Page 401 1st paragraph |
How do you make the most out **the** Rails and the Ruby language? Note from the Author or Editor: |
Anonymous | |
| Printed | Page 405 the last one in the left column |
"Pretty-print the contents of an array" |
Akira Matsuda | |
| Printed | Page 405 right side |
"alias my_method" will cause syntax error. |
Akira Matsuda | |
| Printed | Page 408 2nd paragraph |
"That why" should be "That's why" |
Akira Matsuda | |
| Printed | Page 409 middle |
development: |
Ivo Balbaert | |
| Printed | Page 409 first example |
development: |
Akira Matsuda | |
| Safari Books Online | 411 Caption for illustration at bottom of page |
"These are the used in the RESTful routes in a scaffold application." |
Kathy Jacobson | |
| Printed | Page 411 last section |
"The third principle... there should __ a well defined..." |
Anonymous | |
| Printed | Page 412 2nd para, 3rd para |
2nd para: |
Anonymous | |
| Printed | Page 412 6th paragraph |
rake rails:freeze:edge |
Akira Matsuda |
