Index: config/routes.rb =================================================================== --- config/routes.rb (revision 4266) +++ config/routes.rb (working copy) @@ -24,9 +24,9 @@ # TODO: wasteful since this is also nested under issues, projects, and projects/issues map.resources :time_entries, :controller => 'timelog' - map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post} - map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :get} - map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :post} + map.connect 'projects/:project_id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post} + map.connect 'projects/:project_id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :get} + map.connect 'projects/:project_id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :post} map.with_options :controller => 'wiki' do |wiki_routes| wiki_routes.with_options :conditions => {:method => :get} do |wiki_views| wiki_views.connect 'projects/:project_id/wiki/export', :action => 'export' @@ -222,7 +222,7 @@ map.connect 'projects/:project_id/documents/:action', :controller => 'documents' map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages' - map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki' + map.connect 'wiki/:project_id/:page/:action', :page => nil, :controller => 'wiki' map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations' map.connect 'projects/:project_id/news/:action', :controller => 'news' map.connect 'projects/:project_id/timelog/:action/:id', :controller => 'timelog', :project_id => /.+/