Show human name as title.

This commit is contained in:
Tom Preston-Werner
2010-07-09 16:09:01 -07:00
parent 9b98a81f2a
commit e46a845ef5
2 changed files with 5 additions and 0 deletions
@@ -3,6 +3,7 @@
<div class="actions">
<a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a>
</div>
<h1>{{human_name}}</h1>
<div class="wikistyle">
{{{content}}}
</div>
+4
View File
@@ -3,6 +3,10 @@ module Precious
class Page < Layout
attr_reader :content
def human_name
@name.gsub(/-/, ' ')
end
def title
"A Page"
end