Method: EziiTeamworksController#update
- Defined in:
- app/controllers/ezii_teamworks_controller.rb
#update ⇒ Object
PATCH/PUT /ezii_teamworks/1 PATCH/PUT /ezii_teamworks/1.json
42 43 44 45 46 47 48 49 50 51 52 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 42 def update respond_to do |format| if @ezii_teamwork.update(ezii_teamwork_params) format.html { redirect_to @ezii_teamwork, notice: 'Ezii teamwork was successfully updated.' } format.json { render :show, status: :ok, location: @ezii_teamwork } else format.html { render :edit } format.json { render json: @ezii_teamwork.errors, status: :unprocessable_entity } end end end |