route: move news after project scope

On Rails 3.0, news test passes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8546 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-08 02:37:59 +00:00
parent b151e0eba9
commit 03e10cbc8f
1 changed files with 3 additions and 2 deletions

View File

@ -121,8 +121,6 @@ ActionController::Routing::Routes.draw do |map|
# For nice "roadmap" in the url for the index action # For nice "roadmap" in the url for the index action
map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index'
map.connect 'news', :controller => 'news', :action => 'index'
map.connect 'news.:format', :controller => 'news', :action => 'index'
map.preview_news '/news/preview', :controller => 'previews', :action => 'news' map.preview_news '/news/preview', :controller => 'previews', :action => 'news'
map.connect 'news/:id/comments', :controller => 'comments', map.connect 'news/:id/comments', :controller => 'comments',
:action => 'create', :conditions => {:method => :post} :action => 'create', :conditions => {:method => :post}
@ -193,6 +191,9 @@ ActionController::Routing::Routes.draw do |map|
} }
end end
map.connect 'news', :controller => 'news', :action => 'index'
map.connect 'news.:format', :controller => 'news', :action => 'index'
map.resources :queries, :except => [:show] map.resources :queries, :except => [:show]
map.resources :issues, map.resources :issues,
:collection => {:bulk_edit => [:get, :post], :bulk_update => :post} do |issues| :collection => {:bulk_edit => [:get, :post], :bulk_update => :post} do |issues|