Sweetalert2
Rails Gem for SweetAlert2
Installation
Add this line to your application's Gemfile:
gem 'sweetalert2'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sweetalert2
Usage
Just like this:
application.js:
//= require sweet-alert
application.css:
*= require sweet-alert
Contributing
- Fork it ( http://github.com/
/sweetalert2/fork ) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request