summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-26 10:06:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-26 10:06:18 +0000
commitadfb4f4b4cc7764e181ca65149ab6dc6dade0e31 (patch)
treef6b450c5fe2e6f607dc06ebe7dd958b9708a8523 /config/routes.rb
parent78904346cac4fcecbe37f174e7f050a734d2bdd7 (diff)
downloadredmine-adfb4f4b4cc7764e181ca65149ab6dc6dade0e31.tar.gz
redmine-adfb4f4b4cc7764e181ca65149ab6dc6dade0e31.zip
route: code layout clean up attachments route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8378 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ffd87f153..466b29426 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -224,9 +224,15 @@ ActionController::Routing::Routes.draw do |map|
map.resources :attachments, :only => [:show, :destroy]
# additional routes for having the file name at the end of url
- map.connect 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/, :conditions => {:method => :get}
- map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/, :conditions => {:method => :get}
- map.connect 'attachments/download/:id', :controller => 'attachments', :action => 'download', :id => /\d+/, :conditions => {:method => :get}
+ map.connect 'attachments/:id/:filename', :controller => 'attachments',
+ :action => 'show', :id => /\d+/, :filename => /.*/,
+ :conditions => {:method => :get}
+ map.connect 'attachments/download/:id/:filename', :controller => 'attachments',
+ :action => 'download', :id => /\d+/, :filename => /.*/,
+ :conditions => {:method => :get}
+ map.connect 'attachments/download/:id', :controller => 'attachments',
+ :action => 'download', :id => /\d+/,
+ :conditions => {:method => :get}
map.resources :groups, :member => {:autocomplete_for_user => :get}
map.group_users 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :conditions => {:method => :post}