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
This commit is contained in:
parent
5127f3dcbc
commit
dbc78746d2
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue