Sha256: a0901a304efe51599507a676f617154a10d5297f62864456ac372d10da588f74
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
module Vidibus module Helpers module Extensions module View # Renders flash message. # TODO: Make it more flexible! def render_flash return unless flash.any? level = flash.keys.last %(<div id="flash" class="#{level}"><div>#{flash[level]}</div></div>).html_safe end # Returns next number for tab order. def autotab @autotab ||= 0 @autotab += 1 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vidibus-helpers-0.0.0 | lib/vidibus/helpers/extensions/view.rb |