Skip to main content

application_title

The application_title will always be a link to your application's root_path. This layout option allows you to specify what the text content of that anchor link will be. This hook also determines what the label of your application will be in the browser's tab (by setting it as the value of the HTML document's <title> element). This means you will certainly want to limit yourself to a simple string value (and not HTML).

You should set this value in the PmacsFrontend configuration initializer. Then, if you need to override that value on any particular page, you can use either the helper method or content_for.

Here is an example:

# config/initializers/pmacs-frontend.rb

PmacsFrontend.configure do |config|
  config.application_title = 'My Pmacs App'
end