Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Render flash messages from Rails and jQuery
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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');
Something went wrong with that request. Please try again.