rails/jquery-rails

Non-Remote Non-GET Links with Request Entities

Closed this issue · 2 comments

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.

Could you please open this issue over in jquery-ujs?