ram
1
Hi,
Im trying to insert a
into a table. the code is as below.
HTML
<%= render :partial => "item", :collection => @order.items %>
<tr id="empty_row">
<%= add_item_link "+" %>
|
_item.html.erb
helper method
def add_item_link(name)
link_to_function name do |page|
page.insert_html :before, :empty_row, :partial=>‘item’, :object
=> Item.new
end
end
This works in FF but not in Safari. Any idea what the problem might
be?
Thanks.
ram
2
Hi
In my case none of the rjs working with any of the browsers. even the
page.alert function
please let me know the prob
error msg is
try { } catch (e) { alert(‘RJS error:\n\n’ + e.toString()); alert(’’);
throw e }
-nirosh-