spree/spree — Issue #1116: Can't change shipping method's calculator
Author: BDQ
Created: 2012-02-08 09:03:59+00:00
State: open

Using 1-0-stable and sample data:

1) Edit existing Shipping Method
2) Change calculator
3) Click "Update"
4) You get an "Shipping method is not found" flash message.

Digging into it, it looks like an id is being passed for the calculator, which doesn't make sense.

```ruby
#

```

```ruby
{"authenticity_token"=>"z/0KdAOUBswlnv0i/Bxy2tQnL8ppYZADLIeBubGXWLw=", "_method"=>"put", "utf8"=>"✓",
"id"=>"13537749", "shipping_method"=>{"zone_id"=>"2", "display_on"=>"", "match_one"=>"0", "shipping_category_id"=>"",
"name"=>"UPS One Day", "calculator_type"=>"Spree::Calculator::FlatPercentItemTotal", "match_none"=>"0",
"calculator_attributes"=>{"preferred_amount"=>"15", "id"=>"13537749"}, "match_all"=>"0"},
"controller"=>"spree/admin/shipping_methods", "action"=>"update"}
```

@cmar can you take a look at this?