$("#<%= dom_id @ask_category %>").replaceWith("<%= j render :partial => 'ask_category', :collection => [@ask_category] %>");
<% @ask_category = QaCategory.new(:display => 'List') # reset for new form %>
$(".edit_ask_category").replaceWith("<%= j render "form" %>")
$(".new_ask_category")[0].reset();
