Module: Ramaze::Helper::Common
- Defined in:
- lib/cortex_reaver/helper/common.rb
Instance Method Summary collapse
Instance Method Details
#flashbox ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cortex_reaver/helper/common.rb', line 4 def flashbox f = '' flash.each do |k, v| f << '<div class="flash ' + k.to_s + '">' f << '<div class="icon"></div>' f << '<div class="body">' + v.to_s + '</div>' f << '<div class="clear"></div>' f << '</div>' end f end |