Sha256: 32e161e761bc291f0dc6fef5a2fadd5a6c8b83edd8cc263525a399943f243824
Contents?: true
Size: 605 Bytes
Versions: 21
Compression:
Stored size: 605 Bytes
Contents
# These helper methods can be called in your template to set variables to be used in the layout # This module should be included in all views globally, # to do so you may need to add this line to your ApplicationController # helper :layout module LayoutHelper def title(page_title, show_title = true) @content_for_title = page_title.to_s @show_title = show_title end def show_title? @show_title end def stylesheet(*args) content_for(:head) { stylesheet_link_tag(*args) } end def javascript(*args) content_for(:head) { javascript_include_tag(*args) } end end
Version data entries
21 entries across 21 versions & 11 rubygems
Version | Path |
---|---|
nifty-generators-0.3.0 | rails_generators/nifty_layout/templates/helper.rb |