diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 08:53:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 08:53:39 +0000 |
commit | 1508cd7b8bf9dbc8ef22b6febd1047455c3c72cd (patch) | |
tree | 88daaa947aab2dceb7d6c64223b445f3bc7450bb /config/routes.rb | |
parent | 67835aa74d0412d538bee97d975564a8fec5b2c4 (diff) | |
download | redmine-1508cd7b8bf9dbc8ef22b6febd1047455c3c72cd.tar.gz redmine-1508cd7b8bf9dbc8ef22b6febd1047455c3c72cd.zip |
Moved new group user to its own action GroupsController#new_users.
git-svn-id: http://svn.redmine.org/redmine/trunk@13602 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index f2ddba193..5fe1cf713 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -274,8 +274,9 @@ Rails.application.routes.draw do end end - match 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :via => :post, :as => 'group_users' - match 'groups/:id/users/:user_id', :controller => 'groups', :action => 'remove_user', :id => /\d+/, :via => :delete, :as => 'group_user' + get 'groups/:id/users/new', :to => 'groups#new_users', :id => /\d+/, :as => 'new_group_users' + post 'groups/:id/users', :to => 'groups#add_users', :id => /\d+/, :as => 'group_users' + delete 'groups/:id/users/:user_id', :to => 'groups#remove_user', :id => /\d+/, :as => 'group_user' resources :trackers, :except => :show do collection do |