1

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

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

1 回答 1

4

请确保它jquery_ujs.js包含在您编译的 javascript 资产中。

于 2012-07-29T19:48:56.150 回答