Sweet Alert for Rails

Gem Version

An awesome replacement for JavaScript's alert.

See it in action.

Installation

Add this line to your application's Gemfile:

gem 'sweet-alert'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sweet-alert

Usage

Just like this:

application.js:

//= require sweet-alert

application.css:

/*
 *= require sweet-alert
 */