def update
      @contact_form = Cmtool::ContactForm.find(params[:id])

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

      respond_to do |format|
        if @contact_form.update_attributes(contact_form_params)
          format.html { redirect_to([cmtool, @contact_form], notice: I18n.t('cmtool.action.update.successful', model: Cmtool::ContactForm.model_name.human)) }
          format.xml  { head :ok }
        else
          format.html { render action: "edit" }
          format.xml  { render xml: @contact_form.errors, status: :unprocessable_entity }
        end
      end
    end
PUT /contact_forms/1
 PUT /contact_forms/1.xml