radar/forem — Issue #146: Page titles
Author: glebm
Created: 2012-02-14 02:46:54+00:00
State: open

The page titles are all the same, which Google (= Internet God) doesn't like.

We came up with a workaround like this:

- title = ""
- if @topic
- title += "#{@topic.subject} - #{@topic.forum.title} - #{@topic.forum.category.name} forums - "
- elsif @forum
- title += "#{@forum.category.name} forums - #{@forum.title} - "
- elsif @category
- title += "#{@category.name} forums - "
#{title}Massage Republic

It would be nice to have some way of customizing them without resorting to using the controller's instance variables though.

One suggestion would be to use I18n.