def update
      require_special_pages_permission if is_special_page?(@page)

      @page.transaction do
        if @page.update(page_params)
          update_content
          redirect_to wiki_path(@page), notice: 'Page was successfully updated.'
        else
          render :edit
        end
      end
    end
def update
      require_special_pages_permission if is_special_page?(@page)

      @page.transaction do
        if @page.update(page_params)
          update_content
          redirect_to wiki_path(@page), notice: 'Page was successfully updated.'
        else
          render :edit
        end
      end
    end
PATCH/PUT /pages/1