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