summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-23 15:12:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-23 15:12:57 +0000
commit1528c719a425851dd8576773e30b4b64b9d4736e (patch)
tree6c59fa7106a6d72487b64bb160193122b0202f88 /config
parent0927230a18de0183fac95625071357d748496c9f (diff)
downloadredmine-1528c719a425851dd8576773e30b4b64b9d4736e.tar.gz
redmine-1528c719a425851dd8576773e30b4b64b9d4736e.zip
Code cleanup, use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11074 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ad1465f20..209c70162 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -51,10 +51,10 @@ RedmineApp::Application.routes.draw do
match '/journals/diff/:id', :to => 'journals#diff', :id => /\d+/, :via => :get
match '/journals/edit/:id', :to => 'journals#edit', :id => /\d+/, :via => [:get, :post]
- get '/projects/:project_id/issues/gantt', :to => 'gantts#show'
+ get '/projects/:project_id/issues/gantt', :to => 'gantts#show', :as => 'project_gantt'
get '/issues/gantt', :to => 'gantts#show'
- get '/projects/:project_id/issues/calendar', :to => 'calendars#show'
+ get '/projects/:project_id/issues/calendar', :to => 'calendars#show', :as => 'project_calendar'
get '/issues/calendar', :to => 'calendars#show'
match 'projects/:id/issues/report', :to => 'reports#issue_report', :via => :get