test/dummy/app/controllers/clients_controller.rb in trust-0.8.3 vs test/dummy/app/controllers/clients_controller.rb in trust-1.4.2
- old
+ new
@@ -68,10 +68,10 @@
# PUT /clients/1
# PUT /clients/1.json
def update
respond_to do |format|
- if @client.update_attributes(params[:client])
+ if @client.update_attributes(resource.strong_params)
format.html { redirect_to @client, notice: 'Client was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @client.errors, status: :unprocessable_entity }