This project is archived and is in readonly mode.
link_to with :method doesn't work
Reported by Jeremy McAnally | February 20th, 2010 @ 10:41 PM
For some reason, the UJS stuff (when driven by Prototype at least) doesn't work when you try to do a link_to with a :method argument. It adds the proper HTML attribute, but it seems like rails.js isn't actually observing the right event or something. In any event, clicking the link causes a GET request no matter the method you've told it to give.
Comments and changes to this ticket
-
Steve St. Martin February 22nd, 2010 @ 07:27 PM
- Tag changed from javascript, link_to, ujs to invalid, javascript, link_to, ujs
update to the latest prototype driver http://github.com/rails/prototype-ujs, looks like this issue was fixed a couple days ago.
-
José Valim February 23rd, 2010 @ 09:07 PM
- State changed from new to invalid
-
José Valim February 23rd, 2010 @ 09:07 PM
- State changed from invalid to resolved
Ops, marking as resolved.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>