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