ruby-on-railsrubydestroybutton-to

Delete icon doesn't do confirm dialog


I can't the "confirm" dialog to come up. The record gets deleted ok and the page is updated, but no confirm dialog :(

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

Solution

  • Please ensure that jquery_ujs.js is included in your compiled javascript asset.