mois3x / sweet-alert-rails-confirm

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

couldn't find file 'sweet-alert-confirm' #40

Closed tolerantx closed 7 years ago

tolerantx commented 8 years ago

I'm trying to implement the gem with the readme instructions, in my Gemfile I have the following code:

source "https://rails-assets.org" do
  gem "rails-assets-sweetalert", "~> 1.1.3"
end

In my application.js

//= require sweetalert
//= require sweet-alert-confirm

But when I start my local server I get this error:

couldn't find file 'sweet-alert-confirm' with type 'application/javascript'

Any idea?

mois3x commented 8 years ago

you need to include the gem 'sweet-alert-confirm' at the bottom gemfile also.

doncadavona commented 8 years ago

I've followed the setup instructions, but I'm getting this:

couldn't find file 'sweetalert' with type 'text/css'

carlosgomez2 commented 8 years ago

You need to change 'sweetalert' to 'sweet-alert' into css and js files

CSS: *= require sweet-alert

JS: //= require sweet-alert

chinm3 commented 8 years ago

Hi, I added this sweet-alert and followed instructions, it doesn't seem to be showing the alert? My Bootstrap flash messages says "it's deleted though"...

doncadavona commented 8 years ago

Also,

sweet-alert-confirm of type text/javascript

is not found.

jbayotlang commented 8 years ago

@doncadavona I think you need to restart your server after installing the Gem.