github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

gdagley / display_flash_helper

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 12
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Trying to make displaying flash messages easier and prettier — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Add support for flash[:success] 
gdagley (author)
Fri Dec 26 19:53:12 -0800 2008
commit  977a214e80079b37cdbc447065dcdae3165ba625
tree    70636b983e57941d0fb486730c6b7162531a62fd
parent  fec79781e62f0fc628a3cfc2aff3184910f1072e
display_flash_helper /
name age
history
message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
file install.rb
directory lib/
directory public/
directory tasks/
directory test/
file uninstall.rb
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server