From f9d92411d8a4ce1bd04b7ebb5dc0466408bb329a Mon Sep 17 00:00:00 2001 From: Holger Just Date: Thu, 21 Oct 2010 21:37:50 +0200 Subject: [PATCH] Revert r4085. link_to_if_authorized does not support strings anymore. --- app/views/files/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 20710402b..66f5d12b9 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -1,5 +1,5 @@
-<%= link_to_if_authorized l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add' %> +<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'files', :action => 'new', :id => @project}, :class => 'icon icon-add' %>

<%=l(:label_attachment_plural)%>