We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f7b27c + 646bff6 commit dadf171Copy full SHA for dadf171
actionview/app/assets/javascripts/rails-ujs/features/remote.coffee
@@ -27,7 +27,7 @@ Rails.handleRemote = (e) ->
27
if matches(element, Rails.formSubmitSelector)
28
# memoized value from clicked submit button
29
button = getData(element, 'ujs:submit-button')
30
- method = getData(element, 'ujs:submit-button-formmethod') or element.method
+ method = getData(element, 'ujs:submit-button-formmethod') or element.getAttribute('method') or "get"
31
url = getData(element, 'ujs:submit-button-formaction') or element.getAttribute('action') or location.href
32
33
# strip query string if it's a GET request
0 commit comments