Displaying 1 result from an estimated 1 matches for "updateid".
Did you mean:
updated
2005 Aug 15
2
Newbie rendering problem
...update form at
the same position as that of the original item.
ajax_edit action of the item_controller renders the partial form for
doing so.
def ajax_edit
@item=Item.find(params[:id])
render(:partial=>"form",:locals=>{:item=>@item,:actionName=>"ajax_update",:updateID=>"items",:submitTag=>"update"})
end
_form.rhtml would look like this
<%= form_remote_tag(:update=>updateID,:position=>:bottom,:url=>{:action
=> actionName})%>
<%= text_field_tag(''itemName'',item.name) %>
<%= text_field_tag(...