删除图标不执行确认对话框

时间:2012-07-29 00:24:06

标签: ruby-on-rails ruby destroy button-to

我无法提出“确认”对话框。记录被删除确定并且页面已更新,但没有确认对话框:(

= 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')

1 个答案:

答案 0 :(得分:4)

请确保已编译的javascript资产中包含jquery_ujs.js