link_to :confirm displays popup twice

后端 未结 16 1907
感情败类
感情败类 2020-11-30 02:38

This tag with rails 3

<%= link_to \'Destroy\', item, :method => :delete,:confirm=>\'Are you sure?\' %>

produces this html

16条回答
  •  暖寄归人
    2020-11-30 03:41

    In my case (Rails 3.2.13), I had to delete rails.js to fix the same problem.

    I did not explicitly reference rails.js, nor did changing config.assets.debug help.

提交回复
热议问题