diff options
| author | erdgeist <erdgeist@bauklotz.local> | 2009-03-10 19:59:02 +0100 |
|---|---|---|
| committer | erdgeist <erdgeist@bauklotz.local> | 2009-03-10 19:59:02 +0100 |
| commit | d6049aeffc7de43393a9a7a1d2f95f26422a046f (patch) | |
| tree | 7036f509aa4f4a518a00ddb0e12fe8a6eb4d563a /app/helpers | |
| parent | 3b3158199f147646348fae0008d3f63062967a87 (diff) | |
| parent | 14ada6b405dac2bea27a2959f6f73a7398776b0b (diff) | |
Merge branch 'master' of ssh://git@svn.medienhaus.udk-berlin.de/usr/local/git/cccms
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/link_helper.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index 68586c10..33d8a060 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb | |||
| @@ -1,11 +1,14 @@ | |||
| 1 | module LinkHelper | 1 | module LinkHelper |
| 2 | 2 | ||
| 3 | def link_to_path path | 3 | def link_to_path title, path |
| 4 | url_for( | 4 | params[:locale] ||= I18n.locale |
| 5 | |||
| 6 | link_to( | ||
| 7 | title, | ||
| 5 | :controller => :content, | 8 | :controller => :content, |
| 6 | :action => :render_page, | 9 | :action => :render_page, |
| 7 | :language => I18n.locale, | 10 | :locale => params[:locale], |
| 8 | :page_path => path | 11 | :page_path => path |
| 9 | ) | 12 | ) |
| 10 | end | 13 | end |
| 11 | 14 | ||
