Module: FlashBlockHelper
- Defined in:
- app/helpers/flash_block_helper.rb
Instance Method Summary collapse
Instance Method Details
#flash_block ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'app/helpers/flash_block_helper.rb', line 2 def flash_block output = '' flash.each do |type, | output += flash_container(type, ) end raw(output) end |
#flash_container(_type, message) ⇒ Object
11 12 13 14 15 16 |
# File 'app/helpers/flash_block_helper.rb', line 11 def flash_container(_type, ) raw(content_tag(:div, class: "alert alert-#{use_type}") do content_tag(:a, raw('×'), class: 'close', data: { dismiss: 'alert' }) + end) end |