You are here: Browse Railsplugins Stickies
= Stickies
Stickies is a plugin for Ruby on Rails that provides some easy to use yet powerful features for displaying status messages. It’s a replacement for the traditional use of placing such messages in the flash.
Examples
The following line goes in your layout, where you normally render messages that are in the flash:
<%= render_stickies %>
Once that is place, you can use the helper methods from your controllers or views for adding messages to the message collection:
error_stickie("Your account has been disabled")
warning_stickie("Your account will expire in 3 days")
notice_stickie("Account activated")
Features
To display a warning that a user’s browser sucks, no more than once every 24 hours:
warning_stickie("Your browser sucks", {
:remember => true,
:name => :browser_warning,
:seen_in => 24.hours,
})
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly