this code originally was supposed to default to a title-cased version of the name if there was no title, ex: my-summer-vacation automatically turns into "My Summer Vacation". I think this logic was supposed to go into a model method called label or something like that.
# used whenever we want to display a human readable
# name for this object ...
def label
@title or @name.text.titlecase
end
All objects probably need a method like this. Then the code to set the title for a given page should simply use the label method: