From 6bb1ea8ae8a1f7495ceb1ca656a056dbf11d3dac Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 21 Jan 2016 04:39:56 +0000 Subject: 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 --- config/routes.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config') 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' -- cgit v1.2.3