From 2b4389466f004e569ec60139ee183dd395d7fd47 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 18 Oct 2012 17:10:00 +0000 Subject: [PATCH] Use named route. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10674 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b9fcf9291..0b06f5d23 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -48,7 +48,7 @@ module ApplicationHelper if user.is_a?(User) name = h(user.name(options[:format])) if user.active? || (User.current.admin? && user.logged?) - link_to name, {:controller => 'users', :action => 'show', :id => user}, :class => user.css_classes + link_to name, user_path(user), :class => user.css_classes else name end