Errata
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 "Date 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 Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page ? Example code, Chapter 1 |
Originally submitted in Head First Rails book forum: Note from the Author or Editor: |
Anonymous | Mar 24, 2009 | |
4-5 answer to list items 2 and 3 |
Answers to questions 2 & 3 are reversed Note from the Author or Editor: |
Ron Bingham | Feb 09, 2009 | ||
4 Number (1) of the points |
Is "to" here extra that has to be removed? |
Abder-Rahman | Jun 16, 2010 | ||
4 Last paragraph |
you will probably still need these "three" things for your deployed application. |
Abder-Rahman | Jun 16, 2010 | ||
4 Under "An Application Framework" |
In the following: |
Abder-Rahman | Jul 14, 2010 | ||
5 First line under Pool Puzzle |
There are many features built "in to" Rails. |
Abder-Rahman | Jun 16, 2010 | ||
6 Pool Puzzle Solution |
There are many features built "in to" Rails. |
Abder-Rahman | Jun 16, 2010 | ||
6 Pool Puzzle Solution |
I think the solutions don't match the points? Note from the Author or Editor: |
Abder-Rahman | Jun 16, 2010 | ||
6 1st paragraph |
The main reason "these application exists"..... |
Abder-Rahman | Jun 16, 2010 | ||
8 Under Geek Bits |
"It" you want to use another port, such as 8000, run... |
Abder-Rahman | Jun 16, 2010 | ||
16 Last paragraph |
Scaffolding generated a whole set of pages that allow us to create, modify, and delete ticket details. Note from the Author or Editor: |
Abder-Rahman | Jun 17, 2010 | ||
20 3rd paragraph |
"separated according to it's function" |
Kathy Jacobson | Mar 18, 2009 | ||
21 Point (1) |
The model code manages how "data is written and read to your database". |
Abder-Rahman | Jun 17, 2010 | ||
26 The title: The files in the VIEW need to be edited |
The files in the "VIEW" need to be edited |
Abder-Rahman | Jun 17, 2010 | ||
30 Inside the man's talking bubble |
'suposed' should be changed to 'supposed' Note from the Author or Editor: |
Brett Goulder | Jan 06, 2009 | ||
34 Last paragraoh (Note) |
AddPhoneToTickets adds phone to the "ticket" table. |
Abder-Rahman | Jun 17, 2010 | ||
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 | Jan 07, 2009 | |
Printed | Page 36 1st paragraph |
An 'is' is missing after 'it': "once the code has been generated it the developer's ..." |
Gabriele Bartolini | Feb 19, 2009 | |
36 First paragraph |
But the downside is that once the code has been generated it the developer's responsibility to keep the code up-to-date. Note from the Author or Editor: |
Abder-Rahman | Jun 17, 2010 | ||
46 The note beside price |
Since all the notes contain a "." after them. Do you think "A decimal" has to have a "." (dot) at the end for consistency? |
Abder-Rahman | Jun 17, 2010 | ||
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 | Jan 26, 2009 | |
Printed | Page 54 2nd paragraph: text |
Text: ..."If someone asks for for ad#3..." |
Mike Just | Jan 26, 2009 | |
54 2nd paragraoh |
If someone asks for "for" ad..... |
Abder-Rahman | Jun 17, 2010 | ||
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 | Jan 31, 2009 | |
60 First answer |
MeBay only "want" a very small amount of..... |
Abder-Rahman | Jun 17, 2010 | ||
61 3rd line of code |
missing single quote at end of line: |
Kathy Jacobson | Mar 23, 2009 | ||
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 | Sep 08, 2009 | |
Printed | Page 70 'Congratulations!' paragraph |
"What's more, you taken a peek..." should be Note from the Author or Editor: |
K. Oster | Jan 31, 2009 | |
70 Under "Congratulations" |
...."you" taken a peek under the hood of Rails.... |
Abder-Rahman | Jun 17, 2010 | ||
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 | Jan 31, 2009 | |
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 | Jan 31, 2009 | |
73 The note to the "All Ads" window |
I think it should be "page". |
Abder-Rahman | Jun 21, 2010 | ||
74 First question - Second colum |
should the following sentence be "Ruby on Rails". (on) INSTEAD OF (or)? |
Abder-Rahman | Jun 21, 2010 | ||
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 | Jan 31, 2009 | |
82 answer #2 |
It doesn't keep it's own |
Kathy Jacobson | Mar 23, 2009 | ||
82 First question - Second column |
Should it be "its", instead of "it's" |
Abder-Rahman | Jun 21, 2010 | ||
85 first line |
'form_for' helper |
Kathy Jacobson | Apr 28, 2009 | ||
Printed | Page 89 first block of code: line 2 |
(Beyond Scaffolding) |
hing hoo bird | Apr 09, 2009 | |
Printed | Page 93 Lower 3rd |
Download this! Note from the Author or Editor: |
Anonymous | Aug 06, 2009 | |
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 | Apr 13, 2009 | |
96 Sharpern your pencil (Solution) |
I think "the" has to be "a". |
Abder-Rahman | Jun 23, 2010 | ||
97 3rd paragraph |
Shouldn't it be "puts". With an (s)? |
Abder-Rahman | Jun 21, 2010 | ||
Printed | Page 111,112 1st paragraph |
The <% form for %> tag is missing an underscore. |
Winston Tsai | Sep 15, 2009 | |
Printed | Page 114 Note for '@ad = nil' |
'...no other attributes avaialble, ..." should be Note from the Author or Editor: |
K.Oster | Feb 02, 2009 | |
Printed | Page 114 diagram |
Note from the Author or Editor: |
farida memon | Feb 28, 2009 | |
Printed | Page 115 (3) in the diagram |
"new html.erb" should be "new.html.erb" |
Akira Matsuda | Oct 13, 2009 | |
120 3rd paragraph |
Shouldn't the seconf "of" be removed? Note from the Author or Editor: |
Abder-Rahman | Jun 24, 2010 | ||
131 First question in the third column |
Shouldn't "That" be "That's"? |
Abder-Rahman Ali | Jun 27, 2010 | ||
Printed | Page 140 Test Drive screenshots |
The second and fourth screen shots should be switched. Note from the Author or Editor: |
K.Oster | Feb 02, 2009 | |
Printed | Page 143 line 1 of code box |
The class should read"AdsController" and not "AdController" |
Raymond Jenkins | Apr 03, 2009 | |
160 next to last paragraph |
"requires needs a model object to work." Note from the Author or Editor: |
Kathy Jacobson | Mar 26, 2009 | ||
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 | Jan 31, 2009 | |
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 | Jun 06, 2009 | |
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 | Jun 06, 2009 | |
Printed | Page 166 3rd paragraph |
The paragraph starts with: WIth a model form ... Note from the Author or Editor: |
Anonymous | Jan 31, 2009 | |
Printed | Page 166 page title |
params is not an Array but a Hash. Note from the Author or Editor: |
Akira Matsuda | Oct 18, 2009 | |
Printed | Page 169 Last paragraph |
'...the string the user is searching form.' should be Note from the Author or Editor: |
K.Oster | Feb 02, 2009 | |
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 | Feb 02, 2009 | |
173 2nd paragraph |
"finder for each of it's attributes" |
kajaco2 | Mar 26, 2009 | ||
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 | Feb 03, 2009 | |
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 | Feb 03, 2009 | |
Printed | Page 196 First paragraph |
'Some people are have been leaving...' should be Note from the Author or Editor: |
K.Oster | Feb 03, 2009 | |
196 2nd paragraph |
"trainer's name need to completed" Note from the Author or Editor: |
kajaco2 | Mar 27, 2009 | ||
Printed | Page 203 Last paragraph |
'...on new adds were completed,...' should be Note from the Author or Editor: |
K.Oster | Feb 05, 2009 | |
Printed | Page 211 1st paragraph |
"Now what happens now if we miss..." Note from the Author or Editor: |
Mike Just | Jun 30, 2010 | |
Printed | Page 220 Section heading |
'Coconut Airways need a booking system' should be Note from the Author or Editor: |
K.Oster | Feb 05, 2009 | |
Printed | Page 230 1st paragraph |
In the 2nd sentence "Here's the content of our _new_seat.html.erb partial." only the partial file name should be printed in the fixed width font face. So the word "our" in this sentence has been printed in the wrong font face. |
Mike Just | Jul 01, 2010 | |
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 | Feb 05, 2009 | |
231 Last paragraph |
The render call "tell" Embedded Ruby to process the partial and include its output at that point in the file. |
Abder-Rahman | Jul 15, 2010 | ||
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 | Feb 05, 2009 | |
242 Code box, last note |
"Remove the list to" |
kajaco2 | Apr 01, 2009 | ||
Printed | Page 242 1st paragraph |
New partial is given name _seat_list.html; thereafter it is referred to as _seat_list.html.erb |
Anonymous | Jun 11, 2009 | |
Printed | Page 242 1st paragraph |
Paragraph ends with "Let's call this new partial _seat_list.html:" |
paul mak | Mar 28, 2010 | |
Printed | Page 246 last sentence |
Seat.find_all_for_flight_id(...) |
Ivo Balbaert | Feb 15, 2009 | |
Printed | Page 247 directory tree in the right side |
app |
Akira Matsuda | Aug 02, 2009 | |
Printed | Page 254 last figure right |
The figure should read: app models seat.rb |
Ivo Balbaert | Feb 15, 2009 | |
Printed | Page 256 Q+A |
Q: How do I call a partial form a layout? |
paul makk | Mar 28, 2010 | |
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 | Oct 20, 2009 | |
269 2nd paragraph |
Last line ends in "return it to the browser." |
kajaco2 | Apr 06, 2009 | ||
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 | Sep 20, 2009 | ||
Printed | Page 269 "screenshot" |
The text, html source fragment and top of the screenshot refer to flight 2, but the seat list shown is for flight 1 |
Allan Kinnaird | Nov 07, 2009 | |
Printed | Page 273 2nd paragraph |
In "We can get around this is by giving..." remove the "is". |
Mike Just | Jul 13, 2010 | |
275 6th answer (top of right column) |
"The presence of the value in a request show that a request..." |
kajaco2 | Apr 06, 2009 | ||
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 | Aug 21, 2009 | |
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 | Aug 21, 2009 | |
Printed | Page 287 2nd paragraph |
"But how do we make this the..." should be Note from the Author or Editor: |
Akira Matsuda | Aug 24, 2009 | |
Printed | Page 298 1st paragraph |
"you might expect that you will need to how to write JavaScript code" should be |
Akira Matsuda | Aug 24, 2009 | |
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 | Feb 09, 2009 | |
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 | Apr 07, 2009 | ||
Printed | Page 304 the last paragraph |
"the page object will generate code to updates the notice" should be |
Akira Matsuda | Aug 24, 2009 | |
Printed | Page 304 Heading |
The heading says "The completed code CAN WILL now do several things" |
jhs06r | Oct 20, 2009 | |
Printed | Page 318 Last paragraph |
'...we used Ajax to download new version...' should be |
K.Oster | Feb 09, 2009 | |
Printed | Page 332 |
in the code: :root => "name" should read: :root => "data" |
Ivo Balbaert | Feb 15, 2009 | |
Printed | Page 335 4th A[nswer], 4th line |
"and you will found several places" should read |
Steve Hoogheem | Apr 01, 2009 | |
Printed | Page 349 2nd to last sentence |
'...and the XML bulder template...' should be |
K.Oster | Feb 09, 2009 | |
351-2 1st paragraph (instructions) |
"you won't need to use all the snippets" Note from the Author or Editor: |
Kathy Jacobson | Apr 24, 2009 | ||
Printed | Page 359 1st paragraph, 3rd line |
In the 1st paragraph, 3rd line, the word "the" is doubled. |
Mike Just | Jul 19, 2010 | |
Printed | Page 360 1st paragraph |
"The people ... figured that ..." |
Mike Just | Jul 19, 2010 | |
362 3rd paragraph |
"...our action will need to generated from a partial..." |
Kathy Jacobson | Apr 27, 2009 | ||
Printed | Page 369 First paragraph |
"Once you've clicked on the save button, you're to the cut down..." |
David "Sweet" Robinson | Sep 30, 2009 | |
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 | Apr 01, 2009 | |
Printed | Page 372 Last paragraph |
Instead of 'When the map calls the "new" action is sends...' |
Mike Just | Jul 19, 2010 | |
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 | Apr 20, 2009 | |
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 | Apr 28, 2009 | ||
380 Answer #2 |
"...calls all of it's own..." |
Kathy Jacobson | Apr 28, 2009 | ||
385 Answer #1 |
"That return true..." |
Kathy Jacobson | Apr 28, 2009 | ||
Printed | Page 385 Q+A |
Last question reads: |
paul mak | Apr 05, 2010 | |
Printed | Page 389 Bottom of page |
When updating this code using a route helper: Note from the Author or Editor: |
K.Oster | Feb 11, 2009 | |
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 | Apr 01, 2009 | |
396 last paragraph |
"Well that works pretty like the new form did." |
Kathy Jacobson | Apr 28, 2009 | ||
Printed | Page 397 Answer to first question |
'...harder to reader and...' should be |
K.Oster | Feb 11, 2009 | |
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 | Apr 01, 2009 | |
Printed | Page 398 bottom |
"Visti us here for details..." should be "Visit..." (?) |
Akira Matsuda | Sep 28, 2009 | |
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 | May 31, 2009 | |
Printed | Page 405 the last one in the left column |
"Pretty-print the contents of an array" |
Akira Matsuda | Sep 23, 2009 | |
Printed | Page 405 right side |
"alias my_method" will cause syntax error. |
Akira Matsuda | Sep 23, 2009 | |
Printed | Page 408 2nd paragraph |
"That why" should be "That's why" |
Akira Matsuda | Sep 26, 2009 | |
Printed | Page 409 middle |
development: |
Ivo Balbaert | Feb 15, 2009 | |
Printed | Page 409 first example |
development: |
Akira Matsuda | Sep 26, 2009 | |
Printed | Page 409 2nd example |
This Oracle example won't work. Note from the Author or Editor: |
Akira Matsuda | Sep 28, 2009 | |
411 Caption for illustration at bottom of page |
"These are the used in the RESTful routes in a scaffold application." |
Kathy Jacobson | May 01, 2009 | ||
Printed | Page 411 last section |
"The third principle... there should __ a well defined..." |
Anonymous | May 31, 2009 | |
Printed | Page 412 2nd para, 3rd para |
2nd para: |
Anonymous | May 31, 2009 | |
Printed | Page 412 6th paragraph |
rake rails:freeze:edge |
Akira Matsuda | Sep 28, 2009 |