examples/controllers/user_controller.rb in api-client-2.0.0.rc1 vs examples/controllers/user_controller.rb in api-client-2.0.0.rc2

- old
+ new

@@ -13,11 +13,11 @@ respond_with(@user) end # It will hit http://api.example.com/users with a post request def create - @user = User.post("", :user => params[:user]) + @user = User.post('', :user => params[:user]) respond_with(@user) end # It will hit http://api.example.com/users/1 with a get request def edit @@ -25,10 +25,10 @@ respond_with(@user) end # It will hit http://api.example.com/users/1 with a patch request def update - @user = User.patch("", { :id => params[:id], :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