Forum: Ruby on Rails javascript flash messages gem?

Posted by Antonio Tapiador del Dujo (Guest)
on 2013-01-15 12:16
(Received via mailing list)
Does anybody knows a gem for managing flash messages? I would want to
add messages to the flash div in the client. Bootstrap support is a 
plus.
Posted by Dheeraj Kumar (Guest)
on 2013-01-15 13:07
(Received via mailing list)
Why do you need a gem to manage them? What features would you want the 
gem to have?

--
Dheeraj Kumar
Posted by Antonio Tapiador del Dujo (Guest)
on 2013-01-15 17:37
(Received via mailing list)
Why? To lazy to write it

Feature:

RailsFlash.warn("some message"); // Insert div with bootstrap class and
message

El 15/01/13 13:05, Dheeraj Kumar escribi:
Posted by Dheeraj Kumar (Guest)
on 2013-01-15 17:43
(Received via mailing list)
Clearly, you're too lazy to even search for it.

https://gist.github.com/3344628

--
Dheeraj Kumar
Posted by Johnneylee Rollins (Guest)
on 2013-01-15 17:44
(Received via mailing list)
Hey,

I would suggest probably wrapping this thing up with some javascript 
assets
to give you access to an object you can call to say "Give me them 
messages".
Think about using an engine.

~Johnneylee


On Tue, Jan 15, 2013 at 11:36 AM, Antonio Tapiador del Dujo <
Posted by Antonio Tapiador del Dujo (Guest)
on 2013-01-16 11:41
(Received via mailing list)
Thanks for the pointer Dheeraj. However, this is not what I was asking
for. We already have this in our server-side views. What I am looking
for is a javascript for creating them in client-side.


El 15/01/13 17:42, Dheeraj Kumar escribi:
Posted by Antonio Tapiador del Dujo (Guest)
on 2013-01-16 11:42
(Received via mailing list)
This is what I am looking for :-)

El 15/01/13 17:42, Johnneylee Rollins escribi:
Posted by atd (Guest)
on 2013-02-20 17:40
(Received via mailing list)
I ended up creating the gem for lazy people like me:

http://rubygems.org/gems/flashy

El mircoles, 16 de enero de 2013 11:41:06 UTC+1, atd escribi:
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.