$("#sort_headers").html("<%= j render 'sort_headers' %>"); $("#tbody_diplomas").html("<%= j render :partial => 'diploma', :collection => @diplomas %>"); $("#diploma_pagination").html("<%= j paginate @diplomas, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>");