summaryrefslogtreecommitdiffstats
path: root/app/views/files
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-14 16:24:07 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-14 16:24:07 +0000
commit1b90703157a182d37496ae4c8e3c430681abddc0 (patch)
treec70d5f5aa7efa398ca8e8d222cda6c1906e7b386 /app/views/files
parent41c055363ee4826799b9ffe7d76fd399c89190d3 (diff)
downloadredmine-1b90703157a182d37496ae4c8e3c430681abddc0.tar.gz
redmine-1b90703157a182d37496ae4c8e3c430681abddc0.zip
Refactor: convert FilesController to a restful resource.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4085 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/files')
-rw-r--r--app/views/files/index.html.erb2
-rw-r--r--app/views/files/new.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index 66f5d12b9..20710402b 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'files', :action => 'new', :id => @project}, :class => 'icon icon-add' %>
+<%= link_to_if_authorized l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add' %>
</div>
<h2><%=l(:label_attachment_plural)%></h2>
diff --git a/app/views/files/new.html.erb b/app/views/files/new.html.erb
index 870a315c9..d9d1b6ee1 100644
--- a/app/views/files/new.html.erb
+++ b/app/views/files/new.html.erb
@@ -2,7 +2,7 @@
<%= error_messages_for 'attachment' %>
<div class="box">
-<% form_tag({ :action => 'create', :id => @project }, :multipart => true, :class => "tabular") do %>
+<% form_tag(project_files_path(@project), :multipart => true, :class => "tabular") do %>
<% if @versions.any? %>
<p><label for="version_id"><%=l(:field_version)%></label>