rails/rails — Issue #4261: link_to with :method => post does not degrade gracefully
Author: pcasaretto
Created: 2012-01-02 16:34:41+00:00
State: open

Unobtrusive JavaScript is not applied to HTML generated link_to with a :method => post.
When javascript is disabled it falls back to a get request.
Shouldn't we degrade to a button instead? It will probably break styling and look ugly, but it would work.

Examples

Should send a DELETE request, but triggers a GET request:

link_to 'Do stuff', any_path(obj), :method => :delete