You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unobtrusive JavaScript is not applied to HTML generated by helpers like link_to and button_to (see http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html).
As a result, linking to restfull resources including HTTP verbs or adding confirm-dialogs to buttons, does not work.
Examples
Should send a DELETE request, but triggers a GET request:
link_to'Do stuff',any_path(obj),:method=>:delete
Should invoke a JavaScript confirm dialog, but the request is sent immediately:
button_to'Do stuff',any_path(obj),:confirm=>"Are you sure?"
This issue might relate to the upgrade to Rails 3.
The text was updated successfully, but these errors were encountered:
Unobtrusive JavaScript is not applied to HTML generated by helpers like
link_to
andbutton_to
(see http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html).As a result, linking to restfull resources including HTTP verbs or adding confirm-dialogs to buttons, does not work.
Examples
Should send a DELETE request, but triggers a GET request:
Should invoke a JavaScript confirm dialog, but the request is sent immediately:
This issue might relate to the upgrade to Rails 3.
The text was updated successfully, but these errors were encountered: