rails/jquery-rails — pull request #39 by ketan (2011-12-10 22:14:16+00:00)
Title: UJS data-remote support does not work in IE

Standard practice for browsers over the years is that redirects from POST requests are followed with a GET request.

This works great in all modern browsers, except IE. Not only does IE send a real DELETE/PUT request, it also follows the redirect with another DELETE/PUT. If that redirect points to another resource, you can get a dangerous cascading effect (or just 404 routing errors).

This patch remedies this issue by performing an AJAX post with a '_method' param on a DELETE/PUT request and always uses a POST.