$("#<%= dom_id @project_category %>").replaceWith("<%= j render :partial => 'link_category', :collection => [@project_category] %>");
<% @project_category = ProjectCategory.new(:display => 'List') # reset for new form %>
$(".edit_project_category").replaceWith("<%= j render "form" %>")
$(".new_project_category")[0].reset();