Errata


Print Print Icon

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "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



Version Location Description Submitted By Corrected
Printed Page 44
just above the middle

if the TCPSocket.new message fails in the method

Note from the Author or Editor:
pp44-45, anywhere you see socket.close, please replace with:

socket.close if socket

Wolfgang Kittenberger 
Printed Page 47
Example at the bottom

As described later in Appendix C section

Daniel Kirsch 
Printed Page 139
middle of page: def fib(n)

before defining fib so you need to initialize @series somehow, e.g.:
@series=Array.new
@series[0] = 0
@series[1[ = 1
otherwise you will get a NoMethodError: undefined method `[]=' for nil:NilClass

Note from the Author or Editor:
Change example on p139 to:

def fib(n)
@series ||= []
@series[n] ||= fib(n-1) + fin(n-2)
end

Wolfgang Kittenberger 
Printed Page 196
Figure 7.1

The submit button displayed in Figure 7.1 displays 'Shoot!',
while the ERB template that is supposed to generate it uses
the value 'Shoot'

Note from the Author or Editor:
Replace template line with:

<input type="submit" value="Shoot!">

K.Oster 
Printed Page 197
code fragment at bottom of page

The second entry in the assignment to winning_combos should be
[

Note from the Author or Editor:
Necessary change is as reported. (This is not a duplicate, see page number)

K.Oster 
Printed Page 200
code fragment at top of page

The second entry in the assignment to winning_combos should be
[

Note from the Author or Editor:
Necessary correction is as reported.

K.Oster 
Printed Page 216
Last paragraph

Note from the Author or Editor:
Required change is exactly as reported

K.Oster