small medium large xlarge

Errata for Rails for .NET Developers

 

The latest version of the book is P1.0, released about 8 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.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (16-Dec-08)
#36470
PDF page: 23
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 painfully cor...more...
  • Reported in: P1.0 (16-Oct-08)
#35300
PDF page: 23
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 part of the...more...
  • Reported in: P1.0 (22-Oct-08)
#35394
PDF page: 28
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/new.html....more...
  • Reported in: P1.0 (22-Oct-08)
#35396
PDF page: 29
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> <b>Purcha...more...
  • Reported in: P1.0 (30-Nov-08)
#36206
PDF page: 29
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 presumably ref...more...
  • Reported in: P1.0 (16-Dec-08)
#36471
PDF page: 29

The source listing for new.html.erb does not include the purchased_on field.--Adrian Anttila

  • Reported in: P1.0 (19-Oct-08)
#35345
PDF page: 34
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 G...more...
  • Reported in: P1.0 (16-Dec-08)
#36472
PDF page: 34

The comment about to_s appears before the code it refers to; perhaps it should be moved?--Adrian Anttila

  • Reported in: P1.0 (16-Dec-08)
#36473
PDF page: 35

5 x 10 should be printed out as 50, not 500 as shown in the code listing.--Adrian Anttila

  • Reported in: P1.0 (16-Oct-08)
#35301
PDF page: 35
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 500 wh...more...
  • Reported in: P1.0 (19-Oct-08)
#35346
PDF page: 36

On page 36 the line puts flight.sub(/(w+)\bto/, 'PDX to') doesn’t produce the listed output.--Andrew Gaskell

  • Reported in: P1.0 (19-Oct-08)
#35347
PDF page: 36
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 to 11:4...more...
  • Reported in: P1.0 (19-Oct-08)
#35348
PDF page: 36

There are also some code color issues with the output of the flight example.--Andrew Gaskell

  • Reported in: P1.0 (16-Dec-08)
#36474
PDF page: 36

The standard class for working with regular expressions in .NET is Regex, not RegExp.--Adrian Anttila

  • Reported in: P1.0 (16-Dec-08)
#36475
PDF page: 36
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.--Adria...more...
  • Reported in: P1.0 (16-Dec-08)
#36476
PDF page: 36

The second output listing should not have the output colored green, as if each line contained a comment.--Adrian Anttila

  • Reported in: P1.0 (16-Jan-09)
#37092
PDF page: 36

puts flight.sub(/(w+)\bto/, 'PDX to') # is a pattern match and should use the gsub method NOT the sub method--Matthew Erker

  • Reported in: P1.0 (16-Jan-09)
#37095
PDF page: 36

puts flight.sub(/(w+)\bto/, 'PDX to') # the regular expression is incorrect; maybe: gsub(/\w+ \bto/, 'PDX to')--Matthew Erker

  • Reported in: P1.0 (17-Dec-08)
#36484
PDF page: 39
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 in the ...more...
  • Reported in: P1.0 (16-Oct-08)
#35302
PDF page: 39
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...more...
  • Reported in: P1.0 (30-Jan-09)
#37379
PDF page: 45

"A symbol is globally unique, named representation of" should be "A symbol is *a* globally unique, named representation of"--Mark Cohen

  • Reported in: P1.0 (30-Jan-12)
#48616
Paper page: 50
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 containing ...more...
  • Reported in: P1.0 (19-Oct-08)
#35349
PDF page: 52

"A static method called Models() returns a list of available models that can be used." Models is a property.--Andrew Gaskell

  • Reported in: P1.0 (19-Oct-08)
#35350
PDF page: 53
"In the body of the initializer, we have defined two instance variables, @model and @altitude." There are 3 instance variables defined.--Andrew Gaskel...more...
  • Reported in: P1.0 (19-Oct-08)
#35351
PDF page: 62

There’s 2 methods nested inside of a method for the C# 2.0 example.--Andrew Gaskell

  • Reported in: P1.0 (19-Oct-08)
#35352
PDF page: 62

Small issue with the LINQ version – if you want to keep the examples functionally equivalent then AddDays(-8) is incorrect.--Andrew Gaskell

  • Reported in: P1.0 (19-Oct-08)
#35356
PDF page: 94
The text/symbol "&gt;" appears twice in the example of the generate script: c:\dev\flight&gt; ruby script\generate model flight c:\dev\flight&g...more...
  • Reported in: P1.0 (30-Dec-08)
#36735
PDF page: 94

The command prompts have the > character escaped in the code listing but shouldn't.--Adrian Anttila

  • Reported in: P1.0 (19-Oct-08)
#35357
PDF page: 97
The text/symbol "&gt;" appears twice on this page in the example of the scaffold generate: c:\dev\&gt; rails flight c:\dev\flight\&gt; ruby scri...more...
  • Reported in: P1.0 (20-Oct-08)
#35379
PDF page: 108

Missing a space in @passengersArray - should read "@passengers Array"--Andrew Gaskell

  • Reported in: P1.0 (25-Oct-08)
#35442
PDF page: 115
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.--An...more...
  • Reported in: P1.0 (25-Oct-08)
#35443
PDF page: 117

#BEGIN HIGHLIGHT comment. Guessing that the code is supposed to be highlighted with arrows.--Andrew Gaskell

  • Reported in: P1.0 (03-Feb-09)
#37465
PDF page: 118
Missing from code listing: <!-- START_HIGHLIGHT --> <%= will_paginate @passengers %> <!-- END_HIGHLIGHT --> But available in refer...more...
  • Reported in: P1.0 (03-Feb-09)
#37466
PDF page: 124
"This additional line of code with result in a standard error message displayed inline," should read "This additional line of code *will* result in a ...more...
  • Reported in: P1.0 (01-Jan-09)
#36796
PDF page: 130

Shouldn't the text "/flights-for-today/<name>" map to the AirlinesController, not the FlightsController?--Adrian Anttila

  • Reported in: P1.0 (25-Oct-08)
#35450
PDF page: 131
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 use the te...more...
  • Reported in: P1.0 (02-Jan-09)
#36820
PDF page: 160

Shouldn't the airports variable be prefixed with the @ symbol, since it's a member of the generated view?--Adrian Anttila

  • Reported in: P1.0 (26-Oct-08)
#35482
PDF page: 165
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 the conte...more...
  • Reported in: P1.0 (02-Jan-09)
#36822
PDF page: 165
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 Ant...more...
  • Reported in: P1.0 (23-Jan-09)
#37226
PDF page: 238
Context: ---------------- Using a third-party gem from within your Rails code is dirt simple. Rails knows to activate the RubyGems environment whe...more...