summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-21 04:39:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-21 04:39:56 +0000
commit6bb1ea8ae8a1f7495ceb1ca656a056dbf11d3dac (patch)
tree4ad42455b3b4bfc62e5b0b4a7799b3a628e44dcd /config/routes.rb
parente2a999743e972f56dbd0e9b20bb7facb9a4a672d (diff)
downloadredmine-6bb1ea8ae8a1f7495ceb1ca656a056dbf11d3dac.tar.gz
redmine-6bb1ea8ae8a1f7495ceb1ca656a056dbf11d3dac.zip
Use regular edit/update actions and named routes for JournalsController.
git-svn-id: http://svn.redmine.org/redmine/trunk@15074 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 47451453f..3b469d7e9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -49,8 +49,11 @@ Rails.application.routes.draw do
match '/issues/changes', :to => 'journals#index', :as => 'issue_changes', :via => :get
match '/issues/:id/quoted', :to => 'journals#new', :id => /\d+/, :via => :post, :as => 'quoted_issue'
- match '/journals/diff/:id', :to => 'journals#diff', :id => /\d+/, :via => :get
- match '/journals/edit/:id', :to => 'journals#edit', :id => /\d+/, :via => [:get, :post]
+ resources :journals, :only => [:edit, :update] do
+ member do
+ get 'diff'
+ end
+ end
get '/projects/:project_id/issues/gantt', :to => 'gantts#show', :as => 'project_gantt'
get '/issues/gantt', :to => 'gantts#show'