Module: QuicCms::LayoutHelper
- Defined in:
- app/helpers/quic_cms/layout_helper.rb
Instance Method Summary collapse
- #javascript(*args) ⇒ Object
- #show_title? ⇒ Boolean
- #stylesheet(*args) ⇒ Object
- #title(page_title, show_title = true) ⇒ Object
Instance Method Details
#javascript(*args) ⇒ Object
16 17 18 |
# File 'app/helpers/quic_cms/layout_helper.rb', line 16 def javascript(*args) content_for(:head) { javascript_include_tag(*args) } end |
#show_title? ⇒ Boolean
8 9 10 |
# File 'app/helpers/quic_cms/layout_helper.rb', line 8 def show_title? @show_title end |
#stylesheet(*args) ⇒ Object
12 13 14 |
# File 'app/helpers/quic_cms/layout_helper.rb', line 12 def stylesheet(*args) content_for(:head) { stylesheet_link_tag(*args) } end |
#title(page_title, show_title = true) ⇒ Object
3 4 5 6 |
# File 'app/helpers/quic_cms/layout_helper.rb', line 3 def title(page_title, show_title = true) content_for(:title) { h(page_title.to_s) } @show_title = show_title end |