def update
      @field = Field.find(params[:id])
      @section = Section.find(params[:section_id])

      if(params[:s_action]=='reload')
        return reload_edit
      end

      @field.options = nil # remove all old options
      if @field.update_attributes(params[:field])
        flash[:notice] = 'Field was successfully updated.'
        redirect_to edit_engine_room_section_url(@section.id)
      else
        #render :action => :edit
        reload_edit
      end
    end
def update
      @field = Field.find(params[:id])
      @section = Section.find(params[:section_id])

      if(params[:s_action]=='reload')
        return reload_edit
      end

      @field.options = nil # remove all old options
      if @field.update_attributes(params[:field])
        flash[:notice] = 'Field was successfully updated.'
        redirect_to edit_engine_room_section_url(@section.id)
      else
        #render :action => :edit
        reload_edit
      end
    end
PUT /fields/1