lib/javy_tool/breadcrumb.rb
# display the flash messages using foundation
display the flash messages using foundation
display the flash messages using foundation
def notice_message(cls: 'alert-box')
        flash_messages = []
        flash.each do |type, message|
          next if message.nil?
          type = :info if type == :notice
          type = :alert if type == :error
          text = content_tag(:div, message.html_safe, class: "#{cls} #{type}")
          flash_messages << text if message
        end
        flash_messages.join("\n").html_safe
      end
def notice_message ( cls : 'alert-box' ) flash_messages = [ ] flash . each do | type , message | next if message . nil? type = :info if type == :notice type = :alert if type == :error text = content_tag ( :div , message . html_safe , class : "#{cls} #{type}" ) flash_messages << text if message end flash_messages . join ( "\n" ) . html_safe end
display the flash messages using foundation
display the flash messages using foundation
cls