philsturgeon/codeigniter-restserver — pull request #84 by cnanney (2012-01-20 05:12:28+00:00)
Title: Allows method emulation to be determined via X-HTTP-Method-Override request header

When using Backbone.js, and `emulateHTTP = true`, method can can only be determined via the X-HTTP-Method-Override request header, and data is sent as JSON in the body.

Only when `emulateHTTP = true` and `emulateJSON = true` does the '_method' variable get added, and model data is sent inside a 'model' variable, all sent as form post data.

If you want to use Backbone with `emulateJSON = false`, you need X-HTTP-Method-Override to determine method.