https://github.com/coderberry/flash_helper
Flash Helper
https://github.com/coderberry/flash_helper
Last synced: 8 months ago
JSON representation
Flash Helper
- Host: GitHub
- URL: https://github.com/coderberry/flash_helper
- Owner: coderberry
- License: mit
- Created: 2009-06-24T02:17:37.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2009-06-24T02:18:28.000Z (almost 17 years ago)
- Last Synced: 2025-01-10T21:09:07.118Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
Flash Helper
============
A simple plugin that displays flash messages within a DIV tag, and ignore
if the flash hash isn't set.
Example
=======
flash[:notice] = "User Created Successfully!"
<%= display_flash(flash) %>
#
User Created Successfully!
Instructions
============
Add the following to your stylesheet:
#flash_notice, #flash_error {
padding: 5px 8px;
margin: 10px 0;
}
#flash_notice {
background-color: #CFC;
border: solid 1px #6C6;
}
#flash_error {
background-color: #FCC;
border: solid 1px #C66;
}
Copyright (c) 2009 Eric Berry, released under the MIT license