Errata

Enterprise Rails

Errata for Enterprise Rails

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.

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
Printed Page xii
First paragraph, fourth line


Change "hits" to "bits".

Add the word "all" to the end of the second sentence in the fourth paragraph.

Note from the Author or Editor:

Fixed for next printing.

Anonymous  Feb 20, 2009 
Printed Page xiv
3rd para,

"but also on the edges" should be "but also to the edges"

Loranah  Feb 20, 2009 
Printed Page xvi
penultimate paragraph

"C+" should be "C++"

Loranah  Feb 20, 2009 
Printed Page xix
5th para

The references to Chapters 10 and 11 need to be swapped

Loranah  Feb 20, 2009 
Printed Page 1
4 para

"Google's servers and compared their it..."
should be
"Google's servers and compared theirs..."

loranah  Feb 20, 2009 
1.1
1.1 What is Enterprise, para 4,

If you looked at the configuration of Google's servers and compared their it to Amazon's,

should be:

If you looked at the configuration of Google's servers and compared it to Amazon's,

frankf  May 19, 2009 
1.3.2
1.3.2 Application Layer, para 3

the data stored in database.

should be:

the data stored in the database.

frankf  May 20, 2009 
Printed Page 2
first complete sentence after the bullets

"depth this book" should be "depth in this book"

Loranah  Feb 20, 2009 
Printed Page 3
second para.

"...there some..." should be "...there are some..."

4th para. "your customers will can..." should be "your customers can find..."

Loranah  Feb 20, 2009 
4.2.2
4.2.2. A Note on Migrations, para 8

specifically the purpose it serves

should be:

specifically for the purpose it serves

frankf  May 21, 2009 
Printed Page 9
second sentence

"stored in database" should be "stored in a database"

loranah  Feb 20, 2009 
Printed Page 22
subsection titled "Initialization template", 2nd sentence

The first word should be "Its", not "It's".

Anonymous  Jan 25, 2009 
Printed Page 27
1st paragraph

"class_eval do <<-DELIM"
should read
"class_eval <<-DELIM"

  Dec 09, 2008 
Printed Page 32
first paragraph, second sentence

"four" should be "three"

Loranah  Feb 20, 2009 
Printed Page 38
first sentence following the second code snippet

"In the this..." should be "In this..."

loranah  Feb 20, 2009 
Printed Page 44
2nd paragraph

2nd occurrence of 'MySQL' is obviously missing the capital M.

Anonymous  Jan 25, 2009 
Printed Page 54
2nd sentence

"I don't not disagree" should be "I do not disagree".

Anonymous  Jan 27, 2009 
54
example 5-2

class Threatre

should be

class Theatre

John Markos O'Neill  Jan 02, 2010 
Printed Page 54
Second sentence at the top of the page.

The books says, "I don't not disagree with the tenets of agile development..." and I believe it should say either "I do not disagree with..." or "I don't disagree with..."

Anonymous  Mar 09, 2010 
Printed Page 55
Near top of page, method test_for_db_error

I don't see how this method works, given the assertions and the values that it receives.

My understanding is that the values for the variable database_threw_error is either true or nil; same goes for the variable something_else_threw_error. Assuming I'm correct there, the 'truth table' results of executing those assertions are as follows:

"DB throws error"
"!nil "
true
"true && !nil "
true
... both true, so no assertion failure is triggered (incorrect)

"Something else throws error"
"!true "
false
"nil && !true "
nil
... first assertion fails as expected (correct)

"No error"
"!nil "
true
"nil && !nil "
nil
... nil result on 2nd assertion triggers failure (incorrect)

I also tried this with the assumption that the values were true/false instead of true/nil, and that also failed my 'truth table' test.

I'm obviously missing something here... what is it?

Jon Seidel  Apr 30, 2009 
57
Example 5-4

When I ran the test case in example 5-4, with the database tables created as described in example 5-1, the tests actually passed. They are intended to throw an ActiveRecord::StatementInvalid error. The test cases actually threw this error, because the entries were being created without IDs. The book sets up a scenario in which the tests should fail. Nevertheless, they actually pass, because this StatementInvalid error is thrown.

ERROR: null value in column "id" violates not-null constraint

John Markos O'Neill  Jan 02, 2010 
Printed Page 58
2nd para, first sentence

"...we've add..." should be "...we've added..."

loranah  Feb 20, 2009 
58
2nd paragraph

"We've add check constraints," should read, "We've added check constraints."

John Markos O'Neill  Jan 02, 2010 
Printed Page 97,98
Figures 8-1 and 8-2

The diagrams in figures 8-1 and 8-2 appear to be swapped. The caption on figure 8-2 says "The movie_showtimes table with a reference to the theaters table; a violation of 3NF" Figure 8-2 however does not show this relation, but figure 8-1 does. And vice-versa, the caption for 8-1 indicates that this relation does not exist and the diagram shows it existing.

Anonymous  Mar 11, 2010 
Printed Page 122
In code block, between DECLARE AND BEGIN

book text := $$'Scaling to Enterprise' by Dan Chak$$;

SHOULD SAY:

book text := $$'Enterprise Rails' by Dan Chak$$;

(The line was intended to refer to the name of the book, which changed.)

Daniel Chak
Daniel Chak
 
Dec 15, 2008 
Printed Page 127
End of the 2nd paragraph

"Sdisasters"

Should be

"disasters"

David H. Wilkins  Jan 17, 2009 
Printed Page 143
code sample

There is a typo in the payment=() method of the sample Order class on page 143. Passing p.class into the reflection_assignment_method() as klass followed by a call to class on klass will always result in: Order.reflect_on_association(:class) which is not what was intended. I believe you meant to pass p itself into the reflection_assignment_method().

Daniel Chak
Daniel Chak
 
Jan 05, 2009 
Printed Page 191
1st paragraph, 5th line, 3rd word

"queriesuse"

should be

"queries use"

David H. Wilkins  Jan 22, 2009 
Printed Page 194
2nd sentence

I believe the sentence should read "The difference is that in Figures 13-8 and 13-9, there can be NO expectation of referential integrity to begin with." The 'no' seems to be missing in the text.

Anonymous  Mar 22, 2010 
Printed Page 202
Figure 14-1

The second service box should say "Service Box 2" instead of "Service Box 1"

Anonymous  Mar 24, 2010 
Printed Page 212
4th paragraph

The text says that the remainder of the chapter will talk about REST, XML-RPC, SOAP. There are sections for the latter two, but not REST. Not sure which of the available categories I should have used; Major Editorial MessUp wasn't there.

Robert Young  Feb 25, 2009 
Printed Page 223
last sentence of first para

"...based on data fro..." should be "...based on data from..."

Loranah  Feb 20, 2009 
Printed Page 228
2nd complete sentence

Should be "endpoint URL" instead of "endpoing URL"

Anonymous  Mar 25, 2010 
Printed Page 244
second paragraph of non-code text

Should say "There are many benefits..." rather than "There are may benefits".

Anonymous  Mar 29, 2010 
Printed Page 251
Example 16-10 line 11

The type given for product_id is text. I understand why it is not integer, but is there a reason why is it not varchar(255) or something similar?

Michael  Jun 15, 2009