From 78904346cac4fcecbe37f174e7f050a734d2bdd7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 26 Dec 2011 08:01:42 +0000 Subject: [PATCH] route: code layout clean up members route git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8377 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 12 ++++++++---- 1 file 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|