Module: CoreHelper
Defined Under Namespace
Instance Method Summary collapse
-
#base ⇒ Object
Returns base URL.
-
#title(value = -1)) ⇒ Object
Simple helper for setting title Call from a page template with an argument to set the title; call from the layout with no argument to get the title.
Methods included from Capture
#capture, #capture_block, #capture_erb, #capture_erb_with_buffer, #concat, #content_for
Methods included from HTML
#content_tag, #html_options_from_hash, #javascript_include_tag, #javascript_tag, #short_tag_names, #stylesheet_link_tag, #stylesheet_tag
Instance Method Details
#base ⇒ Object
Returns base URL
144 145 146 |
# File 'lib/helpers/core_helper.rb', line 144 def base Bones.base end |
#title(value = -1)) ⇒ Object
Simple helper for setting title Call from a page template with an argument to set the title; call from the layout with no argument to get the title
138 139 140 141 |
# File 'lib/helpers/core_helper.rb', line 138 def title(value=-1) return @content_for_title if value == -1 @content_for_title = value end |