Install data-confirm-modal via Sprockets
masterTo use this library in a Rails application using Sprockets, add the gem to your Gemfile and require it in your JavaScript asset pipeline.
Note: The library supports Bootstrap 3 and 4. If you are using Bootstrap 2.3, you must use the bootstrap2 branch.
- Add to Gemfile:
gem 'data-confirm-modal'(or use thebootstrap2branch if needed). - Run
bundle. - Require the JavaScript in
application.jsusing the Sprockets directive.
# Gemfile
gem 'data-confirm-modal'
# If using Bootstrap 2.3:
gem 'data-confirm-modal', github: 'ifad/data-confirm-modal', branch: 'bootstrap2'// application.js
//= require data-confirm-modal