module RailsStuff::Helpers::Bootstrap
Constants
- BOOTSTRAP_FLASH_TYPE
- CROSS
- ICONS
Public Instance Methods
basic_link_icons()
click to toggle source
# File lib/rails_stuff/helpers/bootstrap.rb, line 32 def basic_link_icons ICONS end
flash_messages()
click to toggle source
# File lib/rails_stuff/helpers/bootstrap.rb, line 16 def flash_messages messages = flash.map do |type, message| content_tag :div, class: [:alert, BOOTSTRAP_FLASH_TYPE[type] || type] do content_tag(:button, CROSS, class: :close, data: {dismiss: :alert}) + simple_format(message) end end safe_join(messages) end