summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-30 12:53:15 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-30 12:53:15 +0000
commitdbc78746d25db449ba7b2cb947247ac284e0672b (patch)
treecee79e81c5a3ddc89a592220d60e2ed67b182283 /config
parent5127f3dcbc192015f35836be8eb47f4944bbc337 (diff)
downloadredmine-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.rb6
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,