$("#course_categories tbody").html("<%= j render :partial => '/admin/courses/course_category', :collection => @course_categories %>"); $("#course_category_modal").modal("hide");