Flash Helper Plugin - Flash Standardization
November 5th, 2005
Over on the Rails mailing list, Luke Randall is proposing that Rails applications and generators standardize on some keys for the flash:
This being a very good idea, here is an excerpt of his proposition:
Based on my own experiences, I’d suggest something along the lines of the following (the names are the best I can think of, anyone is welcome to suggest better ones):
- :notice for positive feedback (action successful, etc)
- :message for neutral feedback (reminders, etc)
- :warning for negative feedback (action unsuccessful, error encountered, etc)
(emphasis mine)
In the spirit of open source, I started coding a new Rails plugin: the FlashHelperPlugin. With it, you will be able to do:Actually, what I need now is a nudge to get the tests working. Also, WEBrick fails silently on startup with this plugin in vendor/plugins.
If you want to help, go on over to the flash_helper plugin project page for more information. Get started by checking out the code from Subversion.
Leave a Reply