def update
      @page = ::Page.find(params[:id])

      respond_to do |format|
        if @page.update_attributes(page_params)
          format.html { redirect_to(cmtool.pages_path, :notice => I18n.t('cmtool.action.update.successful', :model => ::Page.model_name.human)) }
          format.xml  { head :ok }
        else
          format.html { render :action => "edit" }
          format.xml  { render :xml => @page.errors, :status => :unprocessable_entity }
        end
      end
    end
def update
      @page = ::Page.find(params[:id])

      respond_to do |format|
        if @page.update_attributes(page_params)
          format.html { redirect_to(cmtool.pages_path, :notice => I18n.t('cmtool.action.update.successful', :model => ::Page.model_name.human)) }
          format.xml  { head :ok }
        else
          format.html { render :action => "edit" }
          format.xml  { render :xml => @page.errors, :status => :unprocessable_entity }
        end
      end
    end
PUT /pages/1
 PUT /pages/1.xml