Report abuse

1
2
3
4
5
6
  def destroy
    @paragraph = Paragraph.find(params[:id])
    @paragraph.destroy
    redirect_to :edit unless request.xhr?
    set_pagination_variables
  end