Refactor: split ProjectsController#add into #add (GET) and #create (POST).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4067 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
9da4ee5fcc
commit
763ab07942
5 files changed
+100
-69
No files matched your search
+3
-3
@@ -195,9 +195,9 @@ ActionController::Routing::Routes.draw do |map|
|
||||
end
|
||||
|
||||
projects.with_options :conditions => {:method => :post} do |project_actions|
|
||||
project_actions.connect 'projects/new', :action => 'add'
|
||||
project_actions.connect 'projects', :action => 'add'
|
||||
project_actions.connect 'projects.:format', :action => 'add', :format => /xml/
|
||||
project_actions.connect 'projects/new', :action => 'create'
|
||||
project_actions.connect 'projects', :action => 'create'
|
||||
project_actions.connect 'projects.:format', :action => 'create', :format => /xml/
|
||||
project_actions.connect 'projects/:id/:action', :action => /edit|destroy|archive|unarchive/
|
||||
project_actions.connect 'projects/:id/files/new', :controller => 'files', :action => 'new'
|
||||
project_actions.connect 'projects/:id/activities/save', :controller => 'project_enumerations', :action => 'save'
|
||||
|
||||
Reference in new issue
Block a user