Module: Bootstrap::FlashHelper
- Defined in:
- app/helpers/bootstrap/flash_helper.rb
Overview
Rails helpers for producing flash messages styled as Bootstrap alert boxes.
Constant Summary collapse
- DEFAULT_MAPPING =
{ :notice => :info, :alert => :error, }
Instance Method Summary collapse
-
#flash_messages(options = {}) ⇒ String
Returns Bootstrap alerts for each entry in
flash
.
Instance Method Details
#flash_messages(options = {}) ⇒ String
Returns Bootstrap alerts for each entry in flash
29 30 31 32 |
# File 'app/helpers/bootstrap/flash_helper.rb', line 29 def (={}) = flash.map { |type, | _bs_flash_for(type, , ) } safe_join(, "\n") end |