Project

flashy

0.01
No commit activity in last 3 years
No release in over 3 years
flashy provides helper methods to render flash messages in Rails views. Besides, it provides a javascript library to create flash messages in the browser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.1.0
 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

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');