{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/23602","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/23602/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/23602/comments","events_url":"https://api.github.com/repos/rails/rails/issues/23602/events","html_url":"https://github.com/rails/rails/issues/23602","id":132845087,"number":23602,"title":"Rails 5 beta2 link_to with post or put do not work","user":{"login":"lohqua","id":12834068,"avatar_url":"https://avatars.githubusercontent.com/u/12834068?v=3","gravatar_id":"","url":"https://api.github.com/users/lohqua","html_url":"https://github.com/lohqua","followers_url":"https://api.github.com/users/lohqua/followers","following_url":"https://api.github.com/users/lohqua/following{/other_user}","gists_url":"https://api.github.com/users/lohqua/gists{/gist_id}","starred_url":"https://api.github.com/users/lohqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lohqua/subscriptions","organizations_url":"https://api.github.com/users/lohqua/orgs","repos_url":"https://api.github.com/users/lohqua/repos","events_url":"https://api.github.com/users/lohqua/events{/privacy}","received_events_url":"https://api.github.com/users/lohqua/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-02-10T23:08:36Z","updated_at":"2016-02-10T23:46:45Z","closed_at":"2016-02-10T23:11:44Z","body":"\r\nresources :smiley_images do member do ... post :random_add_to_default end end\r\n\r\nwhich produces this route: random_add_to_default_smiley_image POST /smiley_images/:id/random_add_to_default(.:format)\r\n\r\n<%= link_to 'Random smiley collection', random_add_to_default_smiley_image_path(@sc.id), method: :post, class: 'link' %>\r\n\r\nGenerates: `<a class=\"link\" rel=\"nofollow\" data-method=\"post\" href=\"/smiley_images/1/random_add_to_default\">Random smiley collection</a>`\r\n\r\nWhich produces:\r\n\r\nActionController::RoutingError (No route matches [GET] \"/smiley_images/1/random_add_to_default\")\r\n\r\nI have <%= javascript_include_tag 'application' %> no turbolinks since it blows up on multiple layouts and themes, at least it did in Rails 4.\r\n\r\nYES, I HAVE THE JQUERY_UJS file loaded.\r\n\r\n`  <script src=\"/assets/jquery.self-c64a74367bda6ef8b860f19e74df08927ca99d2be2ac934e9e92d5fd361e0da4.js?body=1\"></script>\r\n<script src=\"/assets/jquery_ujs.self-d602bdfe68ffc63b9f9cc512872aa3cfff046228a0a36e90dd476e8ef54c1b09.js?body=1\"></script>`\r\n\r\nNo, button_to is not an option in the few cases I need links and post and put not working in link_to is an actual bug.\r\n\r\nI am not sure what else is needed to hunt down this bug. "},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/182638611","html_url":"https://github.com/rails/rails/issues/23602#issuecomment-182638611","issue_url":"https://api.github.com/repos/rails/rails/issues/23602","id":182638611,"user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T23:46:45Z","updated_at":"2016-02-10T23:46:45Z","body":"Yes. I didn't. My call was `<%= link_to 'New User', new_user_path, method: :post %>`"}}