Sha256: 29308e32bca2806fce6fad5461a6c8a612158c8259d794979fb912e98b93a503

Contents?: true

Size: 248 Bytes

Versions: 6

Compression:

Stored size: 248 Bytes

Contents

module ApplicationHelper

  def show_flashes
    messages = ''.html_safe 
    flash.collect { |k,v| 
      messages << content_tag(:div, v.html_safe, :class => "flash #{k}" )
    }
    content_tag(:div, messages, :id => 'notifications')
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ample_assets-0.0.7 test/dummy/app/helpers/application_helper.rb
ample_assets-0.0.6 test/dummy/app/helpers/application_helper.rb
ample_assets-0.0.4 test/dummy/app/helpers/application_helper.rb
ample_assets-0.0.3 test/dummy/app/helpers/application_helper.rb
ample_assets-0.0.2 test/dummy/app/helpers/application_helper.rb
ample_assets-0.0.1 test/dummy/app/helpers/application_helper.rb