From 5f976b4483609fbcd32236c92459df2527c30947 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 7 Feb 2009 15:51:29 +0100 Subject: added new helper code to create links for a given node path. --- app/views/pages/index.html.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/views') diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb index 41c8bae..f5918f0 100644 --- a/app/views/pages/index.html.erb +++ b/app/views/pages/index.html.erb @@ -13,10 +13,7 @@ <%=h page.node_id %> <%=h page.title %> - <%=h page.abstract %> - <%=h page.body %> - <%=h page.revision %> - <%= link_to 'Show', page %> + <%= link_to 'Show', link_to_path(page.node.unique_path) %> <%= link_to 'Edit', edit_page_path(page) %> <%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %> -- cgit v1.3