Stickies plugin

Plugin details

Stickies is a Ruby on Rails plugin that provides a nice interface for displaying messages, similar to what you’re doing now with flash[:notice] or flash[:message], only much better.

Websitehttp://software.pmade.com/stickies Repositoryhttp://pmade.com/svn/oss/stickies/trunk Author Peter Jones Tags message LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://pmade.com/svn/oss/stickies/trunk

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")
 debug_stickie("This only works when RAILS_ENV is development")

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 10 months ago