I recently got PATCH mostly working with Backbone and Rails 3, here's what I needed to do.
Sticking Points:
- [Rails] JSON Patch gem needs updated.
- [Rails] Routing verb for patch missing - I believe this is fixed in Rails 4, haven't investigated.
- [Rails] Need to parse the 'application/json-patch+json' content type in sort of a crazy way
- [Rails] Building a patch and applying it to an activerecord model is kind of a pain, ideally we'd have a
ActiveModel#apply_patch(json_patch)
- [Backbone] Building a patch from a set of attributes is tricky - I've done the bare minimum using a loop over a hash to build add operations, which should probably cover a good chunk of cases for backbone. (I imagine most people aren't going to need the json-patch support for moving, copying or deleting keys generally.)