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.

Martin Troels "DarkFox" Eberhardt's latest activity

Monday, April 04 2011
6669 UJS-prototype: :confirm does not work on a button_to was updated in Ruby on Rails
  • Martin Troels "DarkFox" Eberhardt
    Martin Troels "DarkFox" Eberhardt commented at 11:56 AM

    This is in Rails 3.0.3 with the latest prototype-UJS from github, by the way.

    The action is in rails.js around 'document.on("submit"' and 'function allowAction(...

  • Martin Troels "DarkFox" Eberhardt
    Martin Troels "DarkFox" Eberhardt created the ticket at 11:47 AM

    This issue seems to stem from rails.js only checking for data-confirm on the element, and not on the button that is clicked.

    Example code:
    <%= button_to 'confir...