rails/jquery-rails — Issue #29: Non-Remote Non-GET Links with Request Entities
Author: yfeldblum
Created: 2011-10-24 20:59:20+00:00
State: open

Feature Suggestion: Support non-remote non-get links with request entities.

Given the following:

link_to title, resource, :method => :put, :data => { :params => { "a" => "x", "b" => "y" } }

This, when clicked, should send a `PUT` request with the params above as the request entity in either `text/www-url-form-encoded` or `application/json`. It looks like there's code to handle this scenario in a `:remote => true` link; handle this case even when it is not a `:remote => true` link.