module Titleist::Helper
Helper
methods in ActionView for rendering the title.
Public Instance Methods
title_tag()
click to toggle source
Render the full title as a `<title>` tag.
@return [String]
# File lib/titleist/helper.rb, line 11 def title_tag content_tag :title, title_text.to_s end
Private Instance Methods
title_text()
click to toggle source
@private @return [String]
# File lib/titleist/helper.rb, line 19 def title_text current_page?(root_path) ? title.app : title end