RJS Templates for Rails by Cody Fauser The unconfirmed error reports are from readers. They have not yet been approved or disproved by the author or editor and represent solely the opinion of the reader. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification This page was updated August 29, 2006. UNCONFIRMED errors and comments from readers: [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. {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 (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" (31) 2nd paragraph; views/expenses/_form.rhtml should be views/expenses/_new.rhtml {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| %> [35] Last Example; The code reads: page.alert "The Expense could not be added for the following reasons:\n" + @expense.errors.full_messages.join("\n") 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("\n")}") {38} Second Code example; "page.replace 'summary', :partial => 'projects/summary',..." should probably read "page.replace 'summary', :partial => 'expenses/summary',..." {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 (38) 4; Original reads: page.alert "The Expense could not be added for the following reasons:\n" + @expense.errors.full_messages.join("\n") 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:\n" + @expense.errors.full_messages.join("\n") In fact simply moving the "+" sign off the top line seems to cause an erro