From 55fc5cc72d733557ba05f362d465cd54695078a3 Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 17 Nov 2007 09:41:50 +0000 Subject: [PATCH] adding optional title to show page link helper git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@40 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/helpers/pages_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb index 97cf900..e8bc0c6 100644 --- a/app/helpers/pages_helper.rb +++ b/app/helpers/pages_helper.rb @@ -3,8 +3,8 @@ module PagesHelper link_to 'New Page', new_page_path, { :title => 'Create a new page' } end - def show_page_link(page) - link_to 'Show', page_path(page.title_for_url), + def show_page_link(page, better_title = 'Show') + link_to better_title, page_path(page.title_for_url), { :title => page.title } end