summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-01 21:14:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-01 21:14:09 +0000
commit2967023a0e4d27d5cbea7858b6f5f8b1af38f875 (patch)
tree1ec306067eeaf56998a1af1bec1442ddf5086955 /config
parent1cb7de5b5a73a5ad97e0ea85677a00c255e11574 (diff)
downloadredmine-2967023a0e4d27d5cbea7858b6f5f8b1af38f875.tar.gz
redmine-2967023a0e4d27d5cbea7858b6f5f8b1af38f875.zip
Resourcified boards.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8020 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 59c66b9ab..3364682b7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -49,20 +49,6 @@ ActionController::Routing::Routes.draw do |map|
end
end
- map.with_options :controller => 'boards' do |board_routes|
- board_routes.with_options :conditions => {:method => :get} do |board_views|
- board_views.connect 'projects/:project_id/boards', :action => 'index'
- board_views.connect 'projects/:project_id/boards/new', :action => 'new'
- board_views.connect 'projects/:project_id/boards/:id', :action => 'show'
- board_views.connect 'projects/:project_id/boards/:id.:format', :action => 'show'
- board_views.connect 'projects/:project_id/boards/:id/edit', :action => 'edit'
- end
- board_routes.with_options :conditions => {:method => :post} do |board_actions|
- board_actions.connect 'projects/:project_id/boards', :action => 'new'
- board_actions.connect 'projects/:project_id/boards/:id/:action', :action => /edit|destroy/
- end
- end
-
map.resources :issue_moves, :only => [:new, :create], :path_prefix => '/issues', :as => 'move'
map.resources :queries, :except => [:show]
@@ -141,6 +127,7 @@ ActionController::Routing::Routes.draw do |map|
project.resources :queries, :only => [:new, :create]
project.resources :issue_categories, :shallow => true
project.resources :documents, :shallow => true, :member => {:add_attachment => :post}
+ project.resources :boards
project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get}
project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get}
@@ -212,7 +199,6 @@ ActionController::Routing::Routes.draw do |map|
map.resources :issue_statuses, :except => :show, :collection => {:update_issue_done_ratio => :post}
#left old routes at the bottom for backwards compat
- 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 'projects/:project_id/news/:action', :controller => 'news'