diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-30 19:51:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-30 19:51:16 +0000 |
commit | c3c2a4afe0083bf704110c3d13ee7b80262293ee (patch) | |
tree | 984a572187e777532ad0f0b776a533bd485924d4 /config/routes.rb | |
parent | 1a28bd8e7e3adf7a8423005cc39ccf0b151f3bda (diff) | |
download | redmine-c3c2a4afe0083bf704110c3d13ee7b80262293ee.tar.gz redmine-c3c2a4afe0083bf704110c3d13ee7b80262293ee.zip |
Resourcified documents.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8010 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/config/routes.rb b/config/routes.rb index 833f23849..3ce5efdbe 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -63,19 +63,6 @@ ActionController::Routing::Routes.draw do |map| end end - map.with_options :controller => 'documents' do |document_routes| - document_routes.with_options :conditions => {:method => :get} do |document_views| - document_views.connect 'projects/:project_id/documents', :action => 'index' - document_views.connect 'projects/:project_id/documents/new', :action => 'new' - document_views.connect 'documents/:id', :action => 'show' - document_views.connect 'documents/:id/edit', :action => 'edit' - end - document_routes.with_options :conditions => {:method => :post} do |document_actions| - document_actions.connect 'projects/:project_id/documents', :action => 'new' - document_actions.connect 'documents/:id/:action', :action => /destroy|edit/ - end - end - map.resources :issue_moves, :only => [:new, :create], :path_prefix => '/issues', :as => 'move' map.resources :queries, :except => [:show] @@ -158,6 +145,7 @@ ActionController::Routing::Routes.draw do |map| project.resources :time_entries, :controller => 'timelog', :path_prefix => 'projects/:project_id' project.resources :queries, :only => [:new, :create] project.resources :issue_categories, :shallow => true + project.resources :documents, :shallow => true, :member => {:add_attachment => :post} project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get} project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get} @@ -230,7 +218,6 @@ ActionController::Routing::Routes.draw do |map| #left old routes at the bottom for backwards compat map.connect 'projects/:project_id/issues/:action', :controller => 'issues' - 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' |