Alertify.js for Rails
Rails asset-pipeline gem to provide alertify.js out of the box.
Install
Add to your Gemfile:
gem "rails-alertify"
Usage
In your application.js manifest include the javascript files:
//= require alertify
If your manifest is written in CoffeeScript:
#= require alertify
Last step is to add the core
and default
or bootstrap
stylesheets tou your application if you want to use the default ones.
/*
*= require alertify/core
*= require alertify/default
*
*/
If you want to use the bootstrap theme instead:
/*
*= require alertify/core
*= require alertify/bootstrap
*
*/
About me
Senior Developer @ Datenspiel GmbH (Leipzig/Germany)
Thanks
Thanks to Fabien Doiron for Alertify.js
License
Copyright (c) 2012 Daniel Schmidt
Licensed under MIT-License.