helper
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@10 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
b2212d1efa
commit
6e73a18f9c
|
@ -6,4 +6,11 @@ module ApplicationHelper
|
||||||
return @page.title if @page
|
return @page.title if @page
|
||||||
"BarleySodas :: #{controller_class_name.gsub(/Controller/, '')}"
|
"BarleySodas :: #{controller_class_name.gsub(/Controller/, '')}"
|
||||||
end
|
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
|
end
|
||||||
|
|
Reference in New Issue