Displaying 1 result from an estimated 1 matches for "edit_item_".
Did you mean:
edit_item
2006 Feb 14
2
Inline list editing with RJS: best practices
...ection => @items %>
</ul>
--- _item.rhtml (simplified) ---
<li id="item_<%= item.id %>">
<div id="show_item_<%= item.id %>">
<%= h item.name %>
<%= link_to ''edit'', . %>
</div>
<div id="edit_item_<%= item.id %>" style="display: none"></div>
</li>
I am using RJS templates to populate the ''edit_item'' div on an ajax call
from the ''edit'' link. All very straightforward stuff. The problem is on
update in my RJS template I w...