我无法出现“确认”对话框。记录删除正常,页面更新,但没有确认对话框:(
= button_to('- - -', sched_set_path(sched_set_id),
:confirm => 'Are you sure you want to delete this schedule?',
:method => :delete,
:action => :delete,
:class=> 'delete_icon')
最佳答案
请确保 jquery_ujs.js
包含在您编译的 javascript Assets 中。
关于ruby-on-rails - 删除图标不做确认对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11705720/