{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/jquery-ujs/issues/469","repository_url":"https://api.github.com/repos/rails/jquery-ujs","labels_url":"https://api.github.com/repos/rails/jquery-ujs/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/rails/jquery-ujs/issues/469/comments","events_url":"https://api.github.com/repos/rails/jquery-ujs/issues/469/events","html_url":"https://github.com/rails/jquery-ujs/issues/469","id":155373483,"number":469,"title":"link_to with method and confirm ignores method","user":{"login":"jaredmoody","id":27690,"avatar_url":"https://avatars.githubusercontent.com/u/27690?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredmoody","html_url":"https://github.com/jaredmoody","followers_url":"https://api.github.com/users/jaredmoody/followers","following_url":"https://api.github.com/users/jaredmoody/following{/other_user}","gists_url":"https://api.github.com/users/jaredmoody/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredmoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredmoody/subscriptions","organizations_url":"https://api.github.com/users/jaredmoody/orgs","repos_url":"https://api.github.com/users/jaredmoody/repos","events_url":"https://api.github.com/users/jaredmoody/events{/privacy}","received_events_url":"https://api.github.com/users/jaredmoody/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-17T22:05:24Z","updated_at":"2016-05-18T21:07:56Z","closed_at":"2016-05-18T21:07:56Z","body":"I'm having an issue in 5.0.0.rc1 where if I have both a method and specify confirm in a link to call, the method is ignored and a get request is sent instead of a delete.\r\n\r\nFor example, here's my erb and generated html:\r\n\r\n```\r\n<%= link_to icon('trash'), admin_user_path(user), method: :delete, data: { confirm: \"Are you sure you want to delete #{user.full_name}?\" } %>\r\n```\r\n\r\n```\r\n<a data-confirm=\"Are you sure you want to delete Jared Moody?\" rel=\"nofollow\" data-method=\"delete\" href=\"/admin/users/10\"><i class=\"fa fa-trash\"></i></a>\r\n```\r\n\r\nIf I remove the confirm, it works properly.\r\n\r\n### System configuration\r\n**Rails version**:\r\n5.0.0.rc1\r\n**Ruby version**:\r\n2.3.0\r\n"}}