Sha256: a2fee30c49747ff8a8505cb79489fa9343fc895e369f515a884c9af5d6c4e4b6
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 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) { h(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 def data_criacao_table ar content_tag(:span, ar.created_at.to_i.to_s, :class => 'hidden') + " #{l(ar.created_at, :format => :short)}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flockonus-nifty-generators-0.0.12 | lib/generators/nifty/layout/templates/layout_helper.rb |
flockonus-nifty-generators-0.0.11 | lib/generators/nifty/layout/templates/layout_helper.rb |