Displaying 1 result from an estimated 1 matches for "persons_controller".
Did you mean:
person_controller
2007 Sep 20
2
Rendering a partial from within that partial
...39; %>
<%= text_field ''name'', ''last_name'' %>
<%= submit_tag ''Edit'', :onclick =>
"Element.hide(''edit_name_#{name.id}'')" %></tr>
<%= end_form_tag %>
</div>
<% end %>
persons_controller
def update_name
@name = Name.find(params[:id])
if @name.update_attributes(params[:name])
return if request.xhr?
render :partial => ''names''
end
end
update_name.rjs
Code : ruby - fold - unfold
page.replace_html("name_list", :partial =>...