diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-06 18:25:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-06 18:25:01 +0000 |
commit | 729bea1cf38ed80bc34c47a8ef3783d9e06ce5c5 (patch) | |
tree | 641eec746b7102036dc717e62481a3de596133d6 /config | |
parent | 2af97616f760f1ba1bfda96cc91d51e2f3ac0b43 (diff) | |
download | redmine-729bea1cf38ed80bc34c47a8ef3783d9e06ce5c5.tar.gz redmine-729bea1cf38ed80bc34c47a8ef3783d9e06ce5c5.zip |
Moves ProjectsController#add_version to VersionsController#new.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3548 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index e3707b644..1149942c8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -191,7 +191,6 @@ ActionController::Routing::Routes.draw do |map| project_views.connect 'projects/:id/:action', :action => /roadmap|destroy|settings/ project_views.connect 'projects/:id/files', :action => 'list_files' project_views.connect 'projects/:id/files/new', :action => 'add_file' - project_views.connect 'projects/:id/versions/new', :action => 'add_version' project_views.connect 'projects/:id/categories/new', :action => 'add_issue_category' project_views.connect 'projects/:id/settings/:tab', :action => 'settings' end @@ -209,7 +208,6 @@ ActionController::Routing::Routes.draw do |map| 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/versions/new', :action => 'add_version' project_actions.connect 'projects/:id/categories/new', :action => 'add_issue_category' project_actions.connect 'projects/:id/activities/save', :action => 'save_activities' end @@ -225,6 +223,7 @@ ActionController::Routing::Routes.draw do |map| end map.with_options :controller => 'versions' do |versions| + versions.connect 'projects/:project_id/versions/new', :action => 'new' versions.with_options :conditions => {:method => :post} do |version_actions| version_actions.connect 'projects/:project_id/versions/close_completed', :action => 'close_completed' end |