SweetAlert for Rails 5.0.x

This post was tested on the following environment:

  • ruby 2.4.2
  • rails 4.2.10, 5.0.6

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.

소스 : https://github.com/luciuschoi/sweetalert_rails506  

댓글 1개

댓글 남기기

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.