Module: BoilerplateEngineHelper
- Defined in:
- app/helpers/boilerplate_engine_helper.rb
Instance Method Summary collapse
- #alert ⇒ Object
- #head_title(title = nil) ⇒ Object
- #meta_description(meta_description = nil) ⇒ Object
- #notice ⇒ Object
Instance Method Details
#alert ⇒ Object
16 17 18 |
# File 'app/helpers/boilerplate_engine_helper.rb', line 16 def alert flash[:alert] rescue "" end |
#head_title(title = nil) ⇒ Object
2 3 4 5 |
# File 'app/helpers/boilerplate_engine_helper.rb', line 2 def head_title(title = nil) content_for(:head_title) { title } and return if title content_for?(:head_title) ? content_for(:head_title) : BoilerplateYetting.default_head_title end |
#meta_description(meta_description = nil) ⇒ Object
7 8 9 10 |
# File 'app/helpers/boilerplate_engine_helper.rb', line 7 def ( = nil) content_for(:meta_description) { } and return if content_for?(:meta_description) ? content_for(:meta_description) : BoilerplateYetting. end |
#notice ⇒ Object
12 13 14 |
# File 'app/helpers/boilerplate_engine_helper.rb', line 12 def notice flash[:notice] rescue "" end |