]> git.openstreetmap.org Git - rails.git/blob - app/helpers/title_helper.rb
Merge pull request #20 from karussell/routing
[rails.git] / app / helpers / title_helper.rb
1 module TitleHelper
2   def set_title(title = false)
3     response.headers["X-Page-Title"] = t('layouts.project_name.title') + (title ? ' | ' + title : '')
4     @title = title
5   end
6 end