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
- Host: GitHub
- URL: https://github.com/atd/flashy
- Owner: atd
- License: mit
- Created: 2013-02-20T16:17:44.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-20T16:19:01.000Z (over 13 years ago)
- Last Synced: 2025-07-27T17:37:54.534Z (11 months ago)
- Language: Ruby
- Size: 146 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
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');