diff options
| author | hukl <contact@smyck.org> | 2009-09-10 16:38:50 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-10 16:38:50 +0200 |
| commit | 47944aeae214f2cf9eaa7850fb76ea46287bf028 (patch) | |
| tree | 4facb368207975456ec11c2d74c0058208ff84ba /app/helpers/link_helper.rb | |
| parent | 6e41f3d6ae2cda88e5316cec747b6ec79e4c0cd0 (diff) | |
more rss feed enhancements
Diffstat (limited to 'app/helpers/link_helper.rb')
| -rw-r--r-- | app/helpers/link_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index b40aa4b..2d31230 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | module LinkHelper | 1 | module LinkHelper |
| 2 | 2 | ||
| 3 | def content_path_helper path_array | ||
| 4 | url_for( | ||
| 5 | :controller => :content, | ||
| 6 | :action => :render_page, | ||
| 7 | :locale => params[:locale] || I18n.locale, | ||
| 8 | :page_path => path_array | ||
| 9 | ) | ||
| 10 | end | ||
| 11 | |||
| 3 | def link_to_path title, path, html_options = {} | 12 | def link_to_path title, path, html_options = {} |
| 4 | if params[:page_path] | 13 | if params[:page_path] |
| 5 | active = (params[:page_path].join("/") == path.sub(/^\//, "")) | 14 | active = (params[:page_path].join("/") == path.sub(/^\//, "")) |
