Module: Iconly::ApplicationHelper

Defined in:
app/helpers/iconly/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_flashObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/helpers/iconly/application_helper.rb', line 9

def render_flash
   :div, class: 'container flash-container' do
    flash.each do |name, msg|
      div =  :div, class: alert_class_name(name) do
        btn =  :button, type: 'button', class: 'close', 'data-dismiss' => 'alert' do
           :span, '×'.html_safe
        end
        concat btn
        concat sanitize(msg)
      end
      concat div
    end
  end
end

#title(content) ⇒ Object



3
4
5
6
7
# File 'app/helpers/iconly/application_helper.rb', line 3

def title(content)
  content_for :title do
    content
  end
end