Module: BoilerplateEngineHelper

Defined in:
app/helpers/boilerplate_engine_helper.rb

Instance Method Summary collapse

Instance Method Details

#alertObject



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 meta_description(meta_description = nil)
  content_for(:meta_description) { meta_description } and return if meta_description
  content_for?(:meta_description) ? content_for(:meta_description) : BoilerplateYetting.default_meta_description
end

#noticeObject



12
13
14
# File 'app/helpers/boilerplate_engine_helper.rb', line 12

def notice
  flash[:notice] rescue ""
end