public
Description: A simple pattern for managing flash messages in your Ruby on Rails application.
Homepage: http://github.com/planetargon/flash-message-conductor/
Clone URL: git://github.com/planetargon/flash-message-conductor.git
robbyrussell (author)
Mon Jan 19 21:55:11 -0800 2009
commit  654959b5270bd8ceddbf0bb673b85b6f064f8daf
tree    3ae76cf55ded825530cbe66e179856507dddf24f
parent  5ee3a454a0af86b04453d9046e4914967fee1d77
name age message
file MIT-LICENSE Wed Aug 27 23:10:40 -0700 2008 Renaming files for this new plugin name, updati... [robbyrussell]
file README Wed Aug 27 23:41:25 -0700 2008 Updating the description for Flash Message Cond... [robbyrussell]
file Rakefile Wed Aug 27 19:13:19 -0700 2008 A fresh install [robbyrussell]
directory examples/ Thu Aug 28 10:05:37 -0700 2008 [chrisgriffin]
file init.rb Wed Aug 27 23:07:13 -0700 2008 Updating init.rb [robbyrussell]
directory lib/ Loading commit data...
README
Flash Message Conductor
============

A simple pattern for managing flash messages in your Ruby on Rails application.


Example
=======

# Controller helpers

add_message( 'foo' )

is the equivalent of

flash[:message] = 'foo'

Controller helpers included:

add_message( message ) 
add_notice( message )
add_error( message )

# View helpers

<%= render_flash_messages %>

produces:

<div id="flash_messages">
  <p class="message">You have successfully done XYZ...</p>
</div>

# or... if you set an error

<div id="flash_messages">
  <p class="error">Oops! Something went bonkers!</p>
</div>



Copyright (c) 2008 Planet Argon, released under the MIT license