Site icon Ruby & Rails

SweetAlert for Rails 5.0.x

This post was tested on the following environment:

I wish this tutorial works in all Rails 4.x and 5.0.x versions.


gem 'sweetalert-rails' 
gem 'sweet-alert-confirm', github: 'humancopy/sweet-alert-rails-confirm' 


//= require jquery 
//= require jquery_ujs 
//= require sweetalert 
//= require sweet-alert-confirm 
//= require turbolinks 
//= require_tree . 


*= require_self 
*= require sweetalert 
*= require_tree . 

or application.scss

@import sweetalert; 

I hope it helps you.

소스 :  

Exit mobile version