link_to :confirm displays popup twice

后端 未结 16 1891
感情败类
感情败类 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:28

    It sounds like the confirmation handler Javascript in rails.js is being attached twice.

    Could you be accidentally including two copies of rails.js via duplication of a javascript_include_tag helper?

提交回复
热议问题