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/helpers/link_helper.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/helpers/link_helper.rb (limited to 'app/helpers') diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb new file mode 100644 index 0000000..68586c1 --- /dev/null +++ b/app/helpers/link_helper.rb @@ -0,0 +1,12 @@ +module LinkHelper + + def link_to_path path + url_for( + :controller => :content, + :action => :render_page, + :language => I18n.locale, + :page_path => path + ) + end + +end \ No newline at end of file -- cgit v1.3