Skip to main content

application_subtitle

application_subtitle appears beneath application_title in the page chrome header and has no prespecified use. So, feel free to set application_subtitle to whatever you would like, whether a simple string or full-blown HTML.

If your application_subtitle is a constant simple string for every page of your application, set the value in the PmacsFrontend configuration initializer. Otherwise, use either the helper method or content_for.

If you would like to use the Bootstrap breadcrumbs component in the application_subtitle, this gem provides a view partial to make this as easy as possible. Simply render the view partial while setting the content_for, like so:

<% content_for(:application_subtitle,
               render('pmacs-frontend/components/breadcrumbs',
                      links: [
                        { title: 'Root', href: '#root' },
                        { title: 'Grand-Parent', href: '#grand-parent' },
                        { title: 'Parent', href: '#parent' },
                        { title: 'Current', href: '#' }
                      ])) %>

This will render as:

Breadcrumbs `application_subtitle`