summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-07 15:51:29 +0100
committerhukl <hukl@eight.local>2009-02-07 15:51:29 +0100
commit5f976b4483609fbcd32236c92459df2527c30947 (patch)
tree42b27fbc3c63fbb0bad0ba2eca9da516c609c692 /app/helpers
parent36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (diff)
added new helper code to create links for a given
node path.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/link_helper.rb12
1 files changed, 12 insertions, 0 deletions
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 @@
1module LinkHelper
2
3 def link_to_path path
4 url_for(
5 :controller => :content,
6 :action => :render_page,
7 :language => I18n.locale,
8 :page_path => path
9 )
10 end
11
12end \ No newline at end of file