Sha256: 2e004f7aba653a41593e45d2df0c25a680d779e34492ca5f08c68b632f7de6de

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module FlashHelper
 helpers do
   
   # clear out flash object
   def clear_flash!
     @flash = session[:flash] || OrderedHash.new     
     @flash.clear
     session[:flash] = @flash
   end
   
   # add flash message
   def flash_it!( type, msg )
     @flash = session[:flash] || OrderedHash.new
     @flash[type] = msg
     session[:flash] = @flash
puts @flash.inspect     
   end
 end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wackamole-0.0.9 lib/helpers/flash_helper.rb