diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-23 15:55:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-23 15:55:57 +0000 |
commit | 4ac43ab876319acb828aedc1c7cc0210f4cb0d9e (patch) | |
tree | df6f5c6a854d00911a4648b95f6842f5af4e9eec /config | |
parent | 3ef7f5855edc1193755097a4ef981ff67ea4ae56 (diff) | |
download | redmine-4ac43ab876319acb828aedc1c7cc0210f4cb0d9e.tar.gz redmine-4ac43ab876319acb828aedc1c7cc0210f4cb0d9e.zip |
Code cleanup, use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11077 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 209c70162..6b45c65f0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -57,8 +57,8 @@ RedmineApp::Application.routes.draw do 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 - match 'projects/:id/issues/report/:detail', :to => 'reports#issue_report_details', :via => :get + get 'projects/:id/issues/report', :to => 'reports#issue_report', :as => 'project_issues_report' + get 'projects/:id/issues/report/:detail', :to => 'reports#issue_report_details', :as => 'project_issues_report_details' match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post] match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post] |