summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-01 15:17:45 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-01 15:17:45 +0000
commitb5e90972d88c69a1ef2c9e90879e8926d192acff (patch)
tree9370cd677e484caf9ec4576d5e8f5ffcd04aab1f /config/routes.rb
parentdaa8eaa9aebcc284e2904d1258cbfdd78ea23876 (diff)
downloadredmine-b5e90972d88c69a1ef2c9e90879e8926d192acff.tar.gz
redmine-b5e90972d88c69a1ef2c9e90879e8926d192acff.zip
Refactor: move method, ProjectsController#add_file to FilesController#new.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4052 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 270bab4a0..9c8a2f6ae 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -182,7 +182,7 @@ ActionController::Routing::Routes.draw do |map|
project_views.connect 'projects/:id.:format', :action => 'show'
project_views.connect 'projects/:id/:action', :action => /destroy|settings/
project_views.connect 'projects/:id/files', :controller => 'files', :action => 'index'
- project_views.connect 'projects/:id/files/new', :action => 'add_file'
+ project_views.connect 'projects/:id/files/new', :controller => 'files', :action => 'new'
project_views.connect 'projects/:id/settings/:tab', :action => 'settings'
project_views.connect 'projects/:project_id/issues/:copy_from/copy', :controller => 'issues', :action => 'new'
end
@@ -199,7 +199,7 @@ ActionController::Routing::Routes.draw do |map|
project_actions.connect 'projects', :action => 'add'
project_actions.connect 'projects.:format', :action => 'add', :format => /xml/
project_actions.connect 'projects/:id/:action', :action => /edit|destroy|archive|unarchive/
- project_actions.connect 'projects/:id/files/new', :action => 'add_file'
+ project_actions.connect 'projects/:id/files/new', :controller => 'files', :action => 'new'
project_actions.connect 'projects/:id/activities/save', :action => 'save_activities'
end