为什么`button tag`不会显示确认对话框?

HUS*_*TEN 3 ruby-on-rails ruby-on-rails-3

这是我的代码.
尽管它已经确认,但它在点击时不会显示任何对话框.
为什么?

视图

<%= button_tag( :name => 'destroy', :class => "btn btn-danger", :confirm => 'Are you sure?') do %>
Remove
<% end %>
Run Code Online (Sandbox Code Playgroud)

Geo*_*off 8

你需要 :data => { :confirm => ... }

HTH