diff options
| author | hukl <contact@smyck.org> | 2009-07-19 18:40:07 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-07-19 18:40:07 +0200 |
| commit | 0d8879354fbd251e4509a0ab5c6b6e47aa3fa47d (patch) | |
| tree | 0009e7a848b47a856527d70701105523d72e6787 /app/helpers | |
| parent | 00362bb4817ecc82856e9a9ae5fb6821b3182c6f (diff) | |
fixed link_for_path issue
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/link_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index 3be5953..b40aa4b 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | module LinkHelper | 1 | module LinkHelper |
| 2 | 2 | ||
| 3 | def link_to_path title, path, html_options = {} | 3 | def link_to_path title, path, html_options = {} |
| 4 | active = (params[:page_path].join("/") == path.sub(/^\//, "")) | 4 | if params[:page_path] |
| 5 | active = (params[:page_path].join("/") == path.sub(/^\//, "")) | ||
| 6 | end | ||
| 5 | 7 | ||
| 6 | params[:locale] ||= I18n.locale | 8 | params[:locale] ||= I18n.locale |
| 7 | 9 | ||
