def destroy
      Post.disable_post(params[:id])
      respond_to do |format|
        format.html { redirect_to admin_pages_path, notice: I18n.t("controllers.admin.pages.destroy.flash.success") }
      end
    end
def destroy
      Post.disable_post(params[:id])
      respond_to do |format|
        format.html { redirect_to admin_pages_path, notice: I18n.t("controllers.admin.pages.destroy.flash.success") }
      end
    end
deletes the post