This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Apr 17 05:44:47 -0700 2008 | [DefV] |
| |
README.rdoc | Thu Apr 17 05:44:47 -0700 2008 | [DefV] |
| |
init.rb | Thu Apr 17 05:26:11 -0700 2008 | [DefV] |
| |
lib/ | Mon Jun 16 03:48:14 -0700 2008 | [hallski] |
| |
test/ | Mon Jun 16 03:48:14 -0700 2008 | [hallski] |
README.rdoc
TitleHelper
=====
TitleHelper allows you to keep your <title> attributes synced with your <h1> attributes, which is more SEO friendly. This is 100% done in the view, which is different from some other plugins, who work with a title-method in the controllers.
Example
=
This method should be used in your layout and your actions.
In your action:
<%= title "Edit user #{@user.name}" %>
# => <h1>Edit user Jan De Poorter</h1>
In your layout:
<head>
<title><%= title :site_name => 'Foobar' %></title>
# => <title>Edit user Jan De Poorter - Foobar</title>
Copyright © 2008 Jan De Poorter, released under the MIT license




