Module: Humpyard::PagesHelper
- Defined in:
- app/helpers/humpyard/pages_helper.rb
Instance Method Summary collapse
- #javascript(*args) ⇒ Object
- #page_body(options = {}, &block) ⇒ Object
- #stylesheet(*args) ⇒ Object
- #title(page_title) ⇒ Object
Instance Method Details
#javascript(*args) ⇒ Object
15 16 17 |
# File 'app/helpers/humpyard/pages_helper.rb', line 15 def javascript(*args) content_for(:head) { javascript_include_tag(*args) } end |
#page_body(options = {}, &block) ⇒ Object
3 4 5 |
# File 'app/helpers/humpyard/pages_helper.rb', line 3 def page_body(={}, &block) render :partial => '/humpyard/common/page_construct', :locals => {:options => , :block => block} end |
#stylesheet(*args) ⇒ Object
11 12 13 |
# File 'app/helpers/humpyard/pages_helper.rb', line 11 def stylesheet(*args) content_for(:head) { stylesheet_link_tag(*args) } end |
#title(page_title) ⇒ Object
7 8 9 |
# File 'app/helpers/humpyard/pages_helper.rb', line 7 def title(page_title) @content_for_title = page_title.to_s end |