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 over 4 years 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 |
#36470: The ruby command is two lines but is not highlighted on the second line. This was very misleading, and caused me to have to go back and painf...more...
|
P1.0
16-Dec-08 |
||
| 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 |
||
| 29 |
#36471: The source listing for new.html.erb does not include the purchased_on field.--Adrian Anttila |
P1.0
16-Dec-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 |
||
| 34 |
#36472: The comment about to_s appears before the code it refers to; perhaps it should be moved?--Adrian Anttila |
P1.0
16-Dec-08 |
||
| 35 |
#36473: 5 x 10 should be printed out as 50, not 500 as shown in the code listing.--Adrian Anttila |
P1.0
16-Dec-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 |
||
| 36 |
#36474: The standard class for working with regular expressions in .NET is Regex, not RegExp.--Adrian Anttila |
P1.0
16-Dec-08 |
||
| 36 |
#36475: The second output listing on the page should not include the first line. It is a repeat of the variable assignment, and wouldn't be displayed.--Adrian Anttila |
P1.0
16-Dec-08 |
||
| 36 |
#36476: The second output listing should not have the output colored green, as if each line contained a comment.--Adrian Anttila |
P1.0
16-Dec-08 |
||
| 36 |
#37092: puts flight.sub(/(w+)\bto/, 'PDX to') # is a pattern match and should use the gsub method NOT the sub method--Matthew Erker |
P1.0
16-Jan-09 |
||
| 36 |
#37095: puts flight.sub(/(w+)\bto/, 'PDX to') # the regular expression is incorrect; maybe: gsub(/\w+ \bto/, 'PDX to')--Matthew Erker |
P1.0
16-Jan-09 |
||
| 39 |
#36484: The List<> type is a collection, not an array. Either the text needs to be updated to note the distinction, or an actual array should be used...more...
|
P1.0
17-Dec-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 |
||
| 45 |
#37379: "A symbol is globally unique, named representation of" should be "A symbol is *a* globally unique, named representation of"--Mark Cohen |
P1.0
30-Jan-09 |
||
| 50 |
#48616: In the second paragraph of 3.1 Working with Collections and Iterators you state "...we may way want to synthesize an entirely new data set con...more...
|
P1.0
30-Jan-12 |
||
| 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 |
||
| 94 |
#36735: The command prompts have the > character escaped in the code listing but shouldn't.--Adrian Anttila |
P1.0
30-Dec-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 |
||
| 118 |
#37465: Missing from code listing:
<!-- START_HIGHLIGHT -->
<%= will_paginate @passengers %>
<!-- END_HIGHLIGHT -->
But available ...more...
|
P1.0
03-Feb-09 |
||
| 124 |
#37466: "This additional line of code with result in a standard error message displayed inline," should read "This additional line of code *will* resu...more...
|
P1.0
03-Feb-09 |
||
| 130 |
#36796: Shouldn't the text "/flights-for-today/<name>" map to the AirlinesController, not the FlightsController?--Adrian Anttila |
P1.0
01-Jan-09 |
||
| 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 |
||
| 160 |
#36820: Shouldn't the airports variable be prefixed with the @ symbol, since it's a member of the generated view?--Adrian Anttila |
P1.0
02-Jan-09 |
||
| 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 |
||
| 165 |
#36822: Either the id of the h1 element or the CSS needs to change, since they don't have the same value (flights vs header) in the code listings.--Adrian Anttila |
P1.0
02-Jan-09 |
||
| 238 |
#37226: Context:
----------------
Using a third-party gem from within your Rails code is dirt simple. Rails
knows to activate the RubyGems environ...more...
|
P1.0
23-Jan-09 |

