Module: Geri::ApplicationHelper
- Defined in:
- app/helpers/geri/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_page ⇒ Object
11 12 13 |
# File 'app/helpers/geri/application_helper.rb', line 11 def current_page 'index' unless params[:path] end |
#flash_alert ⇒ Object
4 5 6 7 8 9 |
# File 'app/helpers/geri/application_helper.rb', line 4 def flash_alert type = flash_type if type content_tag(:div, flash[type], class: "alert alert-#{type}") end end |