Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

link_to with :method doesn't work

#4013

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.

Reported by Jeremy McAnally · February 20th, 2010 @ 10:41 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Steve St. Martin
    Steve St. Martin
    • 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.

    February 22nd, 2010 @ 07:27 PM

  2. José Valim
    José Valim
    • State changed from new to invalid

    February 23rd, 2010 @ 09:07 PM

  3. José Valim
    José Valim
    • State changed from invalid to resolved

    Ops, marking as resolved.

    February 23rd, 2010 @ 09:07 PM