Skip to content

Rails 4 and Ruby 2.1 issue.  #26

@misteral

Description

@misteral

What about Rails 4 and Ruby 2.1. When i'am implement batch_api and rails 4 app. PUT method in ops[] response 404, GET and POST method - ok.
my query:

{"ops":
[
{"method": "PUT",
"url": "/api/stock_locations/1/stock_items/1",
"params":{"stock_item":{"count_on_hand":"2"}}
},
{"method": "get","url": "/api/stock_locations/1/stock_items/1"}
],
"sequential": "true"}

UPDATED:
params on rails controller after batch_api
{"stock_item"=>{"count_on_hand"=>"2"}}

params on rails controller after direct request
{"stock_item"=>{"count_on_hand"=>"2"},
"format"=>"json",
"action"=>"update",
"controller"=>"spree/api/stock_items",
"stock_location_id"=>"1",
"id"=>"2"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions