def create
      @page = Page.new(page_params)

      require_special_pages_permission if is_special_page?(@page)

      @page.transaction do
        if @page.save
          update_content
          redirect_to wiki_path(@page), notice: 'Page was successfully created.'
        else
          render :new
        end
      end
    end
def create
      @page = Page.new(page_params)

      require_special_pages_permission if is_special_page?(@page)

      @page.transaction do
        if @page.save
          update_content
          redirect_to wiki_path(@page), notice: 'Page was successfully created.'
        else
          render :new
        end
      end
    end
POST /pages