Sha256: 9eea1d94aa2e9c6a66e02220ab9f9bb9acf4cf91162430d472005b61a2ef4f47

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

module ApplicationHelper
  def display_flash_messages
    html = ''
    flash.each do |key, msg|
      case key
      when 'notice'
         html += content_tag :div, msg, class: "alert alert-info"
      else
         html += content_tag :div, msg, class: "alert alert-warning"
      end
    end
    html
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woodlock-0.0.1 test/dummy/app/helpers/application_helper.rb