From 91967554b93f2477ca13e9389dd6379b50922dd6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 24 Jan 2015 10:58:21 +0000 Subject: [PATCH] Use named route. git-svn-id: http://svn.redmine.org/redmine/trunk@13941 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 783cd7758..53b9037bd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -425,7 +425,7 @@ module ApplicationHelper def time_tag(time) text = distance_of_time_in_words(Time.now, time) if @project - link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)}, :title => format_time(time)) + link_to(text, project_activity_path(@project, :from => User.current.time_to_date(time)), :title => format_time(time)) else content_tag('abbr', text, :title => format_time(time)) end -- 2.39.5