Sha256: e1a6af7e3833bd34ef06822b0e96ab2a6be32b99118e1ebcaceefb338a124b75
Contents?: true
Size: 424 Bytes
Versions: 38
Compression:
Stored size: 424 Bytes
Contents
module JefferiesTube::ApplicationHelper def naive_page_title return @page_title if @page_title controller = params[:controller] title = case params[:action] when "new" "New #{controller.singularize.titlecase}" when "edit" "Editing #{controller.singularize.titlecase}" when "index" "Manage #{controller.titlecase}" else controller.titlecase end title end end
Version data entries
38 entries across 38 versions & 1 rubygems