diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-30 12:53:15 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-30 12:53:15 +0000 |
commit | dbc78746d25db449ba7b2cb947247ac284e0672b (patch) | |
tree | cee79e81c5a3ddc89a592220d60e2ed67b182283 /config | |
parent | 5127f3dcbc192015f35836be8eb47f4944bbc337 (diff) | |
download | redmine-dbc78746d25db449ba7b2cb947247ac284e0672b.tar.gz redmine-dbc78746d25db449ba7b2cb947247ac284e0672b.zip |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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, |