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