From: Toshi MARUYAMA Date: Fri, 30 Dec 2011 12:53:15 +0000 (+0000) Subject: route: move 'issues/new' matching before project/issues resources X-Git-Tag: 1.4.0~848 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbc78746d25db449ba7b2cb947247ac284e0672b;p=redmine.git route: move 'issues/new' matching before project/issues resources On Rails3.0, 'match' needs before resources. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8440 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/config/routes.rb b/config/routes.rb index 480459bf2..70fb0fdd9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -172,12 +172,12 @@ ActionController::Routing::Routes.draw do |map| } do |project| project.resource :project_enumerations, :as => 'enumerations', :only => [:update, :destroy] - project.resources :issues, :only => [:index, :new, :create] do |issues| - issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get} - end # issue form update project.issue_form 'issues/new', :controller => 'issues', :action => 'new', :conditions => {:method => :post} + project.resources :issues, :only => [:index, :new, :create] do |issues| + issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get} + end project.resources :files, :only => [:index, :new, :create] project.resources :versions, :shallow => true,