Sha256: 3c1c6cba7c8e6e11dee8a2cf027ab6d9f31ee2370cd76ec5b94a435d11e728a1
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
module OpenConferenceWare # = PageTitleHelper # # This mixin provides a #page_title helper for easily getting/setting the # page's title, and providing a reasonable title if none was set. module PageTitleHelper # Return string to be used as a page title (e.g., for HTML's TITLE and H1). # If +value+ provided, also sets page title. If no page title was set, # provides a reasonable simulation based on the controller's name and action. def page_title(value=nil) @_page_title = value if value return(@_page_title || "#{controller.controller_name.humanize}: #{action_name.humanize}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems