diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 08:01:42 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 08:01:42 +0000 |
commit | 78904346cac4fcecbe37f174e7f050a734d2bdd7 (patch) | |
tree | e444bb502a91b498b026df789ad6721482a1c577 /config/routes.rb | |
parent | 748410c8763b1e87c8012c112d32071441e4e4bf (diff) | |
download | redmine-78904346cac4fcecbe37f174e7f050a734d2bdd7.tar.gz redmine-78904346cac4fcecbe37f174e7f050a734d2bdd7.zip |
route: code layout clean up members route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8377 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index c3f185d74..ffd87f153 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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| |