From 47944aeae214f2cf9eaa7850fb76ea46287bf028 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 10 Sep 2009 16:38:50 +0200 Subject: more rss feed enhancements --- app/helpers/link_helper.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/helpers') 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 @@ module LinkHelper + def content_path_helper path_array + url_for( + :controller => :content, + :action => :render_page, + :locale => params[:locale] || I18n.locale, + :page_path => path_array + ) + end + def link_to_path title, path, html_options = {} if params[:page_path] active = (params[:page_path].join("/") == path.sub(/^\//, "")) -- cgit v1.3