route: simplify project settings and issues copy route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8417 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-29 08:05:17 +00:00
parent f2b8672f08
commit 6c3987bbe6
1 changed files with 5 additions and 5 deletions

View File

@ -192,11 +192,11 @@ ActionController::Routing::Routes.draw do |map|
end end
# TODO: port to be part of the resources route(s) # TODO: port to be part of the resources route(s)
map.with_options :controller => 'projects' do |project_mapper| map.with_options :conditions => {:method => :get} do |project_views|
project_mapper.with_options :conditions => {:method => :get} do |project_views| project_views.connect 'projects/:id/settings/:tab',
project_views.connect 'projects/:id/settings/:tab', :controller => 'projects', :action => 'settings' :controller => 'projects', :action => 'settings'
project_views.connect 'projects/:project_id/issues/:copy_from/copy', :controller => 'issues', :action => 'new' project_views.connect 'projects/:project_id/issues/:copy_from/copy',
end :controller => 'issues', :action => 'new'
end end
map.with_options :controller => 'activities', :action => 'index', map.with_options :controller => 'activities', :action => 'index',