Errata

Ajax on Rails

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

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 23
2nd code block, line 11

request.open('get', '/chapter2/myresponse');
->
request.open('get', '/chapter2/myresponse', true);

########################################

Anonymous    Mar 01, 2007
Printed
Page 23
2nd code block, 3 lines from end

request.send();
->
request.send(null);

########################################

Anonymous    Mar 01, 2007
Printed
Page 23
2nd code block, line 11

request.open('get', '/chapter2/myresponse');
->
request.open('get', '/chapter2/myresponse', true);

########################################

Anonymous    Mar 01, 2007
Printed
Page 23
2nd code block, 3 lines from end

request.send();
->
request.send(null);

########################################

Anonymous    Mar 01, 2007
Printed
Page 23
2nd code block, line 11

request.open('get', '/chapter2/myresponse');
->
request.open('get', '/chapter2/myresponse', true);

Anonymous    Apr 01, 2007
Printed
Page 23
2nd code block, 3 lines from end

request.send();
->
request.send(null);

Anonymous    Apr 01, 2007
Printed
Page 31
-1

graduallyfs
->
gradually

########################################

Anonymous    Mar 01, 2007
Printed
Page 31
-1

graduallyfs
->
gradually

Anonymous    Apr 01, 2007
Printed
Page 32
code in 2nd paragraph

script/generate controller chapter3 get_time repeat reverse

should be this

script/generate controller chapter3 get_time repeat reverse index

Anonymous   
Printed
Page 36
+1

index.html
->
index.rhtml

########################################

Anonymous    Mar 01, 2007
Printed
Page 36
+1

index.html
->
index.rhtml

Anonymous    Apr 01, 2007
Printed
Page 39
+1

repeater action
->
repeat action

########################################

Anonymous    Mar 01, 2007
Printed
Page 39
+1

repeater action
->
repeat action

Anonymous    Apr 01, 2007
Printed
Page 46
1st code under Form Observers

<p>Text to reverse: <%= text_field_tag 'textToReverse' %></p>
->
<p>Text to reverse: <%= text_field_tag 'text_to_reverse' %></p>

########################################

Anonymous    Mar 01, 2007
Printed
Page 46
1st code under Form Observers

<p>Text to reverse: <%= text_field_tag 'textToReverse' %></p>
->
<p>Text to reverse: <%= text_field_tag 'text_to_reverse' %></p>

Anonymous    Apr 01, 2007
Printed
Page 50
Inset

"...they and contribute something to the plot." => "...they contribute something to the plot."

Anonymous   
Printed
Page 55
Second to last paragraph (not counting code examples)

Draggable.initialized is referenced, though it has only indirectly appeared previously, when a new
Draggable object is created: "Just like Draggable.initialize, the first argument...". Should either
discuss it directly beforehand or change the text to something like, "Just like the Draggable
constructore, the first argument...".

Anonymous   
Printed
Page 57
4th code block, 2nd line

<%= draggable_element :constraintDIV, :constraint => "'vertical'" %>
->
<%= draggable_element :constraintDIV, :constraint => "vertical" %>

########################################

Anonymous    Mar 01, 2007
Printed
Page 57
4th code block, 2nd line

<%= draggable_element :constraintDIV, :constraint => "'vertical'" %>
->
<%= draggable_element :constraintDIV, :constraint => "vertical" %>

Anonymous    Apr 01, 2007
Printed
Page 65
Last paragraph

"...there's nothing Rails-specific about basic idea..." => "...there's nothing Rails-specific about the
basic idea..."

Anonymous   
Printed
Page 70
-3

(which replace an entire element)
->
(which replaces an entire element)

########################################

Anonymous    Mar 01, 2007
Printed
Page 70
-3

(which replace an entire element)
->
(which replaces an entire element)

Anonymous    Apr 01, 2007
Printed
Page 72
+1 under Collection Proxies

The $() method is used to find a collection of elements
->
The $$() method is used to find a collection of elements

########################################

Anonymous    Mar 01, 2007
Printed
Page 72
+1 under Collection Proxies

The $() method is used to find a collection of elements
->
The $$() method is used to find a collection of elements

Anonymous    Apr 01, 2007
Printed
Page 73
Top two paragraphs (including one-line code example)

These paragraphs seem redundant--one should be eliminated or coalesced into the other.

Anonymous   
Printed
Page 73
-1

The collect method (and its synonym, map) evaluates a block for each member
of the collection and to store the result of each block in a new array.
->
The collect method (and its synonym, map) evaluates a block for each member
of the collection and stores the result of each block in a new array.

########################################

Anonymous    Mar 01, 2007
Printed
Page 73
-1

The collect method (and its synonym, map) evaluates a block for each member
of the collection and to store the result of each block in a new array.
->
The collect method (and its synonym, map) evaluates a block for each member
of the collection and stores the result of each block in a new array.

Anonymous    Apr 01, 2007
Printed
Page 74
+1 under select/find_all

...store them in a Javascript Object.
->
...stores them in a Javascript Object.

########################################

Anonymous    Mar 01, 2007
Printed
Page 74
+1 under reject

...store then in a Javascript Object.
->
...store them in a Javascript Object.

########################################

Anonymous    Mar 01, 2007
Printed
Page 74
+1 under select/find_all

...store them in a Javascript Object.
->
...stores them in a Javascript Object.

Anonymous    Apr 01, 2007
Printed
Page 74
+1 under reject

...store then in a Javascript Object.
->
...store them in a Javascript Object.

Anonymous    Apr 01, 2007
Printed
Page 77
-3

Note that the only the code in the block...
->
Note that only the code in the block...

########################################

Anonymous    Mar 01, 2007
Printed
Page 77
-3

Note that the only the code in the block...
->
Note that only the code in the block...

Anonymous    Apr 01, 2007
Printed
Page 78
-2

Class proxies can be used call static methods on JavaScript classes.
->
Class proxies can be used to call static methods on JavaScript classes.

########################################

Anonymous    Mar 01, 2007
Printed
Page 78
-2

Class proxies can be used call static methods on JavaScript classes.
->
Class proxies can be used to call static methods on JavaScript classes.

Anonymous    Apr 01, 2007
Printed
Page 98
first line of page

"they've had to content with"

should have been:

"they've had to contend with"

Anonymous   
Printed
Page 141
2nd code example on page

<%= exerpt post.body, @q %></li>
->
<%= excerpt post.body, @q %></li>

########################################

Anonymous    Mar 01, 2007
Printed
Page 141
2nd code example on page

<%= exerpt post.body, @q %></li>
->
<%= excerpt post.body, @q %></li>

Anonymous    Apr 01, 2007
Printed
Page 161
3rd paragraph, 1st line

Assert Packager
should be:
Asset Packager

Anonymous