diff options
| author | hukl <hukl@eight.local> | 2009-02-07 15:51:29 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-07 15:51:29 +0100 |
| commit | 5f976b4483609fbcd32236c92459df2527c30947 (patch) | |
| tree | 42b27fbc3c63fbb0bad0ba2eca9da516c609c692 /app/helpers | |
| parent | 36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (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.rb | 12 |
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 @@ | |||
| 1 | module 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 | |||
| 12 | end \ No newline at end of file | ||
