summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
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