Sha256: e97395fd668640f1befbf7fd3ef9a177a8bce22fa23c5db9ade87a13b9073f6b
Contents?: true
Size: 771 Bytes
Versions: 24
Compression:
Stored size: 771 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 #Search image from style path def style_image_tag(name,args={}) image_tag("styles/#{CONFIG[:default_style]}/#{name}",args) end end
Version data entries
24 entries across 24 versions & 1 rubygems