Displaying 1 result from an estimated 1 matches for "submittag".
Did you mean:
submit_tag
2005 Aug 15
2
Newbie rendering problem
...n 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(''itemAName'',item.a...