examples/controllers/user_controller.rb in api-client-2.6.0 vs examples/controllers/user_controller.rb in api-client-2.7.0
- old
+ new
@@ -25,10 +25,10 @@
respond_with(@user)
end
# It will hit http://api.example.com/users with a patch request
def update
- @user = User.patch({ :user => params[:user] })
+ @user = User.patch(params[:id], { :user => params[:user] })
respond_with(@user)
end
# It will hit http://api.example.com/users/1 with a get request
def show
\ No newline at end of file