git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@10 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-10-04 04:54:21 +00:00
parent b2212d1efa
commit 6e73a18f9c
1 changed files with 7 additions and 0 deletions

View File

@ -6,4 +6,11 @@ module ApplicationHelper
return @page.title if @page
"BarleySodas :: #{controller_class_name.gsub(/Controller/, '')}"
end
##
# Returns a link for a Page model.
#
def link_to_page(page)
link_to page.title, page_path({ :id => page.title_for_url })
end
end