An open API service indexing awesome lists of open source software.

https://github.com/atd/flashy

Render flash messages from Rails and jQuery
https://github.com/atd/flashy

Last synced: 10 months ago
JSON representation

Render flash messages from Rails and jQuery

Awesome Lists containing this project

README

          

= 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}[http://twitter.github.com/bootstrap/components.html#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');