Errata for Rails for .NET Developers
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 P1.0, released about 1 month 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.
| Paper | Description | Found in | Fixed in | |
|---|---|---|---|---|
| 23 |
#35300: In the example on page 23 , the generate script is demonstrated.
In the figure, the command text gets wrapped to the next line and the par...more...
|
P1.0
16-Oct-08 |
||
| 28 |
#35394: After adding the new column with rake db:migrate, the text says to add the new field to the existing view pages. It says to "Open app/views/n...more...
|
P1.0
22-Oct-08 |
||
| 29 |
#35396: It seems like the code example should include the changes that are being talked about in the text. Adding the code for the new field:
<p>
<...more...
|
P1.0
22-Oct-08 |
||
| 29 |
#36206: The sentence on PDF p29 "Using the same technique, you should also go ahead and enhance app/views/NEW.html.erb in the same way." should presum...more...
|
P1.0
30-Nov-08 |
||
| 34 |
#35345: The wording in the last paragraph of the to_s vs. ToString() section on page 34 implies that the an example of to_s was shown to the reader.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 35 |
#35301: On PDF page 35 under section 2.3, the following ruby code is sampled:
puts "\t#{5*10}"
and the result in the book is said to be
5...more...
|
P1.0
16-Oct-08 |
||
| 36 |
#35346: On page 36 the line puts flight.sub(/(w+)\bto/, 'PDX to') doesn’t produce the listed output.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 36 |
#35347: The first line of output in the flight example is actually the first line of code – flight = "United Airlines, Flight #312, ORD to LAX, 9:45AM...more...
|
P1.0
19-Oct-08 |
||
| 36 |
#35348: There are also some code color issues with the output of the flight example.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 39 |
#35302: On PDF page 39 on line 1 of the .NET code example a string of characters is present that is not .NET code: #<label id="code.constructor" />--Jeff Harrington |
P1.0
16-Oct-08 |
||
| 52 |
#35349: "A static method called Models() returns a list of available models that can be used." Models is a property.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 53 |
#35350: "In the body of the initializer, we have defined two instance variables, @model and @altitude." There are 3 instance variables defined.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 62 |
#35351: There’s 2 methods nested inside of a method for the C# 2.0 example.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 62 |
#35352: Small issue with the LINQ version – if you want to keep the examples functionally equivalent then AddDays(-8) is incorrect.--Andrew Gaskell |
P1.0
19-Oct-08 |
||
| 94 |
#35356: The text/symbol ">" appears twice in the example of the generate script:
c:\dev\flight> ruby script\generate model flight
c:\dev\...more...
|
P1.0
19-Oct-08 |
||
| 97 |
#35357: The text/symbol ">" appears twice on this page in the example of the scaffold generate:
c:\dev\> rails flight
c:\dev\flight\> r...more...
|
P1.0
19-Oct-08 |
||
| 108 |
#35379: Missing a space in @passengersArray - should read "@passengers Array"--Andrew Gaskell |
P1.0
20-Oct-08 |
||
| 115 |
#35442: Unexplained #END HIGHLIGHT comment. I'm guessing the arrows are supposed to stop at that line because the code after #END HIGHLIGHT didn't change.--Andrew Gaskell |
P1.0
25-Oct-08 |
||
| 117 |
#35443: #BEGIN HIGHLIGHT comment. Guessing that the code is supposed to be highlighted with arrows.--Andrew Gaskell |
P1.0
25-Oct-08 |
||
| 131 |
#35450: The proposed show action potentially hits the database twice. Not a big deal if you're consistently using the named route, but I'd probably us...more...
|
P1.0
25-Oct-08 |
||
| 165 |
#35482: Few things on this page:
"header and footer to our views" - there isn't really a footer being added. There's a header and you're styling t...more...
|
P1.0
26-Oct-08 |
