Module: ApplicationHelper

Defined in:
lib/app/helpers/application_helper.rb,
lib/vendor/plugins/rspec-rails/spec/resources/helpers/plugin_application_helper.rb

Overview

Methods added to this helper will be available to all templates in the application.

Constant Summary collapse

FLASH_NOTICE_KEYS =
[:info, :success, :warning, :error]

Instance Method Summary collapse

Instance Method Details

#configObject



5
6
7
# File 'lib/app/helpers/application_helper.rb', line 5

def config
  Hubbub::Config
end

#method_in_plugin_application_helperObject



3
4
5
# File 'lib/vendor/plugins/rspec-rails/spec/resources/helpers/plugin_application_helper.rb', line 3

def method_in_plugin_application_helper
  "<div>This is text from a method in the ApplicationHelper</div>"
end

#title(page_title) ⇒ Object



9
10
11
12
13
# File 'lib/app/helpers/application_helper.rb', line 9

def title page_title
  @title = page_title
  head = page_title.blank? ? "" : "#{page_title} - "
  content_for(:title) { "#{head}#{config[:title]}" }
end