Sha256: 538d177eeb59cb7c21ad112d957dbdaa31da5bae98b4a906a304ee798a4a949c

Contents?: true

Size: 406 Bytes

Versions: 11

Compression:

Stored size: 406 Bytes

Contents

module FlashBlockHelper
  def flash_block
    output = ''
    flash.each do |type, message|
      output += flash_container(type, message)
    end

    raw(output)
  end

  def flash_container(type, message)
  	# Types: important, success, warning, error
  	#<p class="warning message">This is a warning message.</p>
    raw(content_tag(:p, :class => "message #{type}") do
      message
    end)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
groundworkcss-rails-0.2.12 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.11 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.10 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.9 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.8 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.7 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.6 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.5 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2.2 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.2 app/helpers/flash_block_helper.rb~
groundworkcss-rails-0.1 app/helpers/flash_block_helper.rb~