public
Description: Simple Rails helper for displaying the page title.
Homepage:
Clone URL: git://github.com/zachinglis/page_title.git
name age message
file README.textile Sat Dec 20 09:16:47 -0800 2008 Initial commit [zachinglis]
file Rakefile Sat Dec 20 09:16:47 -0800 2008 Initial commit [zachinglis]
file init.rb Sat Dec 20 09:16:47 -0800 2008 Initial commit [zachinglis]
directory lib/ Sat Dec 20 09:16:47 -0800 2008 Initial commit [zachinglis]
directory spec/ Sat Dec 20 09:16:47 -0800 2008 Initial commit [zachinglis]
directory tasks/ Sat Dec 20 09:16:47 -0800 2008 Initial commit [zachinglis]
README.textile

PageTitle

Simple Rails helper for displaying the page title.

Example

Set the page_title variable in your action. <code>page_title = “Dashboard”

Then in your layout, you can do something like so:
<html> <head> <title><%= page_title(:prefix => 'London Made') %></title>

<%= page_title %>

It will return the following result:
<html> <head> <title>London Made &raquo; Dashboard</title>

Dashboard

page_title options are :prefix, :suffix, :seperator

Copyright © 2008 Zach Inglis, released under the MIT license