Sha256: bf8ee5cae0522224ace1371fc54ce450f0c41fa2fb56291ff8098fa385b0434e
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module AdminHelper 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datalab-generators-0.1.0 | lib/generators/datalab/layout/templates/admin_helper.rb |