Render flash messages from Rails and jQuery
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
lib
test
.gitignore
Gemfile
MIT-LICENSE
README.rdoc
Rakefile
flashy.gemspec

README.rdoc

Flashy

Flashy provides helper methods to render flash messages in Rails views. Besides, it provides a javascript library to create flash messages in the browser

Flashy comes with Bootstrap classes for easy integration with Boostrap alerts

Installation

Add to your Gemfile

gem 'flashy'

Besides, you need to require the javascript in your app/assets/application.js

//= require flashy

Usage

Just render the flash partial with

<%= flashy %>

Create new flash errors from client using:

Flashy.message('error', 'This is the error explanation');