mois3x / sweet-alert-rails-confirm

A Rails confirm replacement with SweetAlert
MIT License
73 stars 50 forks source link

Please update readme with proper installation guide #35

Open ghost opened 8 years ago

ghost commented 8 years ago

gem 'rails-assets-sweetalert' doesnt exist at all

if I install gem 'sweet-alert' there is no sweet-alert-confirm file in the gem folder

gem 'sweet-alert-confirm', git: 'https://github.com/mois3x/sweet-alert-rails-confirm didn't work either. In every case I got it to not throw an error I got the message that swal function does not exist.

shah743 commented 8 years ago

First, make sure you use bundler >= 1.8.4 Second, you need to add in Gemfile in the following convention:

source 'https://rails-assets.org' do gem 'rails-assets-sweetalert' end

ghost commented 8 years ago

I'll let you know of my results, when I get to try it. thanks

eddygarcas commented 6 years ago

Adding the following 'gem' from forks worked for me, the master one bypass the modal box and triggered the action straight forward.

gem "sweet-alert" , git: "https://github.com/frank184/sweet-alert-rails" gem "sweet-alert-confirm", git: "https://github.com/humancopy/sweet-alert-rails-confirm"