summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-08 02:37:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-08 02:37:59 +0000
commit03e10cbc8f8e4ea8c75ff0f47a60890ff8ba4031 (patch)
tree03a51ed48dbdb549b3699b7746bb79199daf9581 /config
parentb151e0eba9632f92a464aeea275898d82b147512 (diff)
downloadredmine-03e10cbc8f8e4ea8c75ff0f47a60890ff8ba4031.tar.gz
redmine-03e10cbc8f8e4ea8c75ff0f47a60890ff8ba4031.zip
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
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ae5f0f8a7..54c5b1d1f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -121,8 +121,6 @@ ActionController::Routing::Routes.draw do |map|
# For nice "roadmap" in the url for the index action
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.connect 'news/:id/comments', :controller => 'comments',
:action => 'create', :conditions => {:method => :post}
@@ -193,6 +191,9 @@ ActionController::Routing::Routes.draw do |map|
}
end
+ map.connect 'news', :controller => 'news', :action => 'index'
+ map.connect 'news.:format', :controller => 'news', :action => 'index'
+
map.resources :queries, :except => [:show]
map.resources :issues,
:collection => {:bulk_edit => [:get, :post], :bulk_update => :post} do |issues|