public
Description: Trying to make displaying flash messages easier and prettier
Homepage:
Clone URL: git://github.com/gdagley/display_flash_helper.git
gdagley (author)
Fri Dec 26 19:53:12 -0800 2008
commit  977a214e80079b37cdbc447065dcdae3165ba625
tree    70636b983e57941d0fb486730c6b7162531a62fd
parent  fec79781e62f0fc628a3cfc2aff3184910f1072e
name age message
file MIT-LICENSE Sat Apr 19 05:52:50 -0700 2008 first commit [gdagley]
file README Fri Dec 26 19:53:12 -0800 2008 Add support for flash[:success] [gdagley]
file Rakefile Sat Apr 19 05:52:50 -0700 2008 first commit [gdagley]
file init.rb Sat Apr 19 05:52:50 -0700 2008 first commit [gdagley]
file install.rb Sat Apr 19 05:52:50 -0700 2008 first commit [gdagley]
directory lib/ Fri Dec 26 19:53:12 -0800 2008 Add support for flash[:success] [gdagley]
directory public/ Wed Apr 30 14:06:17 -0700 2008 fix styles [gdagley]
directory tasks/ Sat Apr 19 05:52:50 -0700 2008 first commit [gdagley]
directory test/ Fri Dec 26 19:53:12 -0800 2008 Add support for flash[:success] [gdagley]
file uninstall.rb Sat Apr 19 05:52:50 -0700 2008 first commit [gdagley]
README
DisplayFlashHelper
==================

Just a little helper to make it easier to display notice, warning, and error messages. It will only 
show flash[:success], flash[:notice], flash[:warning], or flash[:error] messages.

There are some default styles and icons that can be used.  

  rake display_helper:setup

Example
=======

In your controller:

  def create
    do_somthing
    flash[:notice] = 'Something has been done.'
  end

In your view (layout or template):

  <%= display_flash %>
  
And it will create:
  <div id="flash">
    <div class="notice">Something has been done.</div>
  </div>

Silk Icons from http://famfamfam.com/lab/icons/silk/, released under the Creative Commons Attribution 2.5 License
Copyright (c) 2008 Geoffrey Dagley, released under the MIT license