Metadata
Set instance variables in your controller or view to populate the page's <title> and <meta> tags.
Page title
Set the @page_title instance variable to populate the <title> tag.
# In your controller
def show
@page_title = "Dashboard"
end
# Or in your view
<% @page_title = "Dashboard" %>
Page description
Set the @page_description instance variable to populate the <meta name="description"> tag.
# In your controller
def show
@page_description = "View project details and activity"
end
# Or in your view
<% @page_description = "View project details and activity" %>