route: code layout clean up members route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8377 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-26 08:01:42 +00:00
parent 748410c876
commit 78904346ca
1 changed files with 8 additions and 4 deletions

View File

@ -108,10 +108,14 @@ ActionController::Routing::Routes.draw do |map|
# Bulk deletion
map.connect '/issues', :controller => 'issues', :action => 'destroy', :conditions => {:method => :delete}
map.connect 'projects/:id/members/new', :controller => 'members', :action => 'new', :conditions => { :method => :post }
map.connect 'members/edit/:id', :controller => 'members', :action => 'edit', :id => /\d+/, :conditions => { :method => :post }
map.connect 'members/destroy/:id', :controller => 'members', :action => 'destroy', :id => /\d+/, :conditions => { :method => :post }
map.connect 'members/autocomplete_for_member/:id', :controller => 'members', :action => 'autocomplete_for_member', :conditions => { :method => :post }
map.connect 'projects/:id/members/new', :controller => 'members',
:action => 'new', :conditions => { :method => :post }
map.connect 'members/edit/:id', :controller => 'members',
:action => 'edit', :id => /\d+/, :conditions => { :method => :post }
map.connect 'members/destroy/:id', :controller => 'members',
:action => 'destroy', :id => /\d+/, :conditions => { :method => :post }
map.connect 'members/autocomplete_for_member/:id', :controller => 'members',
:action => 'autocomplete_for_member', :conditions => { :method => :post }
map.resources :users
map.with_options :controller => 'users' do |users|