Module: AssetManager::ApplicationHelper
- Defined in:
- app/helpers/asset_manager/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#am_title(header, sub_header = nil) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/asset_manager/application_helper.rb', line 3 def am_title(header, sub_header = nil) safe_header = h(header.to_s.truncate(100, separator: ' ')) content_for(:title) { safe_header } safe_header = content_tag(:h1, raw(safe_header)) end |