The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version |
Location |
Description |
Submitted by |
Date Submitted |
Printed |
Page 10
2nd paragraph |
The suggested method for specifying what template I want to render gives me the
following error.
'No rhtml, rxml, rjs or delegate template found for account/product.rjs'
I'm pretty sure the file is there.
|
Anonymous |
|
Printed |
Page 25
2nd Code block |
The javascript created by:
page.insert_html :bottom, 'expenses', :partial => 'expense'
...raises an error under IE on XP using rails 1.1. The issue seems to be the attempt
to insert the HTML into a table - if I change the original item to be a DIV then all
is well.
I am unsure of a suitable fix for this problem... Everything works fine in Firefox
though
|
Anonymous |
|
Printed |
Page 25
2nd paragraph |
Last sentence:
Create app/views/new.rjs and add the following code to it:
I think "new.rjs" file should be created in "app/views/expenses/new.rjs"
|
Anonymous |
|
Printed |
Page 31
2nd paragraph |
views/expenses/_form.rhtml should be views/expenses/_new.rhtml
|
Anonymous |
|
Printed |
Page 34
Code block before the last paragraph |
<% form_remote_for :expense,
Expense.new,
:url => hash_for_expenses_url(:project => @project, :action =>
'new'),
:loading => 'Form.enable("expense-form")',
:complete => 'Form.disable("expense-form")',
:html => { :id => 'expense-form' } do |f| %>
should be:
<% form_remote_for :expense,
Expense.new,
:url => hash_for_expenses_url(:project => @project, :action =>
'new'),
:loading => 'Form.disable("expense-form")',
:complete => 'Form.enable("expense-form")',
:html => { :id => 'expense-form' } do |f| %>
|
Anonymous |
|
Printed |
Page 35
Last Example |
The code reads:
page.alert "The Expense could not be added for the following reasons:
" +
@expense.errors.full_messages.join("
")
This doesn't work for me on Firefox as (from what I can see) the errors string has
it's quote marks escaped and you end up with something like
"The expense error blah blah ..." + "Some Error text
I got around this by doing
page.alert("Msg ...: #{@expense.errors.full_messages.join("
")}")
|
Anonymous |
|
Printed |
Page 38
Second Code example |
"page.replace 'summary', :partial => 'projects/summary',..." should probably read
"page.replace 'summary', :partial => 'expenses/summary',..."
|
Anonymous |
|
Printed |
Page 38
new.rjs code block in the middle of the page |
The highlight effect line:
page.visual_effect :highlight, 'expense-#{@expense.id}'
needs to be:
page.visual_effect :highlight, "expense-#{@expense.id}"
With the single quotes, it doesn't perform the id substitution
|
Anonymous |
|
Printed |
Page 38
4 |
Original reads:
page.alert "The Expense could not be added for the following reasons:
"
+ @expense.errors.full_messages.join("
")
This caused errors for me on rails 1.1 (windows). I have to change it to:
page.alert "The Expense could not be added for the following reasons:
" +
@expense.errors.full_messages.join("
")
In fact simply moving the "+" sign off the top line seems to cause an erro
|
Anonymous |
|