Module: Iconly::ApplicationHelper
- Defined in:
- app/helpers/iconly/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_flash ⇒ Object
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 content_tag :div, class: 'container flash-container' do flash.each do |name, msg| div = content_tag :div, class: alert_class_name(name) do btn = content_tag :button, type: 'button', class: 'close', 'data-dismiss' => 'alert' do content_tag :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 |