Skip to main content

page_subtitle

page_subtitle is a hook which allows a developer to set a subtitle in the page header. Because it exists in the page header, page_subtitle depends on page_title being called.

As this cannot be a global option, you cannot set this option in the PmacsFrontend configuration; however, you may still use either the helper method or the content_for mechanisms.

Here is an example of setting the page_subtitle with content_for:

# app/views/students/show.html.erb

<% content_for :page_title, @student.full_name %>
<% content_for :page_subtitle, @student.department %>