本文介绍了Rails 3:submit_tag不:确认(而link_to确实)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么这会正确启动确认"对话框...
Why does this correctly launch the "confirm" dialog...
<%= link_to "Visit Other Site", "http://www.rubyonrails.org/", :confirm => "Are you sure?" %>
...但不是这个:
<%= submit_tag "Save", :confirm => "Are you sure?" %>
我正在使用:
- 导轨3.2.12
- gem'jquery-rails'(版本:2.2.1)
推荐答案
这是一个未解决的问题/错误,请参见上面的评论.
It's a pending issue/bug, see comments above.
这篇关于Rails 3:submit_tag不:确认(而link_to确实)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!