Sha256: 5efbb3fd7ce9343a03de814b09b3404c957d09f07ea56140d22a5ae3cdd1b575

Contents?: true

Size: 181 Bytes

Versions: 4

Compression:

Stored size: 181 Bytes

Contents

module FlashHelper

  def flash_tag(flash)
    flash.collect do |level, message|
      content_tag(:div, sanitize(message), :class => level)
    end.join("\n").html_safe
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
user_interface-0.0.5 app/helpers/flash_helper.rb
user_interface-0.0.4 app/helpers/flash_helper.rb
user_interface-0.0.3 app/helpers/flash_helper.rb
user_interface-0.0.2 app/helpers/flash_helper.rb