Jump to content

The ultimate community for Ruby on Rails developers.


bootstrap 3 modal replacing default browser destroy confirmation

bootstrap 3 bootstrap-sass jQuery

  • Please log in to reply
No replies to this topic

#1 sergio



  • Members
  • 1 posts

Posted 07 November 2013 - 10:49 AM

Hi, I am new around here. I have posted the same question in SO with no answer, so I will try it here: 


I want to change the default browser confirmation in the destroy action to a Bootstrap modal window instead. I found this implementation, which I needed to change to conform with Bootstrap 3 modal HTML. Unfortunately, when I click "delete", nothing happens. I tried to put remote: true in the destroy action link in the view and respond to format.js in the destroy action in the controller.

I also looked here and here, but could not find a way to apply the solution to my code. To not duplicate things, I won't duplicate all the code I pasted in the original link: http://stackoverflow...-the-controller

If someone can help the destroy action to work in the modal, please let me know. Any hint is appreciated, I am completely stuck.


Also tagged with one or more of these keywords: bootstrap 3, bootstrap-sass, jQuery

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users