wiki pages

This commit is contained in:
albert
2011-03-10 18:35:19 -05:00
parent 9c0a961ab2
commit 81aec6b950
8 changed files with 48 additions and 451 deletions

View File

@@ -56,6 +56,10 @@ class WikiPage < ActiveRecord::Base
def creator_name
User.id_to_name(user_id).tr("_", " ")
end
def category_name
Tag.category_for(title)
end
def pretty_title
title.tr("_", " ")