What is the best way to create a custom title for pages in a Rails app without using a plug-in?
In your views do something like this:
<% content_for :title, "Title for specific page" %>
<%= content_for(:title, "Title for specific page") %>
The following goes in the layout file:
<%= yield(:title) %>
<%= yield(:title) %>
It's also possible to encapsulate the content_for and yield(:title) statements in helper methods (as others have already suggested). However, in simple cases such as this one I like to put the necessary code directly into the specific views without custom helpers.