def update
      @placement = Placement.find(params[:id])
  
      respond_to do |format|
        if @placement.update(placement_params)
          format.html { redirect_to @placement, :notice => 'Placement was successfully updated.' }
          format.json { head :no_content }
        else
          format.html { render :action => "edit" }
          format.json { render :json => @placement.errors, :status => :unprocessable_entity }
        end
      end
    end
def update
      @placement = Placement.find(params[:id])
  
      respond_to do |format|
        if @placement.update(placement_params)
          format.html { redirect_to @placement, :notice => 'Placement was successfully updated.' }
          format.json { head :no_content }
        else
          format.html { render :action => "edit" }
          format.json { render :json => @placement.errors, :status => :unprocessable_entity }
        end
      end
    end
PUT /placements/1
 PUT /placements/1.json