Method: Ems::TagsController#update
- Defined in:
- app/controllers/ems/tags_controller.rb
#update ⇒ Object
PUT /tags/1 PUT /tags/1.json
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'app/controllers/ems/tags_controller.rb', line 66 def update @tag = Tag.find(params[:id]) respond_to do |format| if @tag.update_attributes(params[:tag]) format.html { redirect_to @tag, notice: 'Tag was successfully updated.' } format.json { head :no_content } else format.html { render action: "edit" } format.json { render json: @tag.errors, status: :unprocessable_entity } end end end |