summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-11 17:51:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-11 17:51:20 +0000
commitcf66561b1ef5f80360588bc4e4691bf464cd88fc (patch)
tree3375809b6ad00516ae1db5e8a7b02a99377e4f44 /config/routes.rb
parent228414f777a6ca7ce12ab21bf4bd7152b46c89c8 (diff)
downloadredmine-cf66561b1ef5f80360588bc4e4691bf464cd88fc.tar.gz
redmine-cf66561b1ef5f80360588bc4e4691bf464cd88fc.zip
Routes cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10980 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f66250ee1..7b048d570 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -85,11 +85,9 @@ RedmineApp::Application.routes.draw do
match 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', :via => :post
match 'watchers/autocomplete_for_user', :controller=> 'watchers', :action => 'autocomplete_for_user', :via => :get
- get 'projects/:id/settings/:tab', :to => "projects#settings"
-
resources :projects do
member do
- get 'settings'
+ get 'settings(/:tab)', :action => 'settings', :as => 'settings'
post 'modules'
post 'archive'
post 'unarchive'
@@ -206,9 +204,6 @@ RedmineApp::Application.routes.draw do
# TODO: delete /time_entries for bulk deletion
match '/time_entries/destroy', :to => 'timelog#destroy', :via => :delete
- # TODO: port to be part of the resources route(s)
- match 'projects/:id/settings/:tab', :to => 'projects#settings', :via => :get
-
get 'projects/:id/activity', :to => 'activities#index'
get 'projects/:id/activity.:format', :to => 'activities#index'
get 'activity', :to => 'activities#index'