summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index af9c2410a..480459bf2 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -261,7 +261,6 @@ ActionController::Routing::Routes.draw do |map|
:conditions => {:method => :post}
end
- 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 => /.*/,
@@ -272,6 +271,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'attachments/download/:id', :controller => 'attachments',
:action => 'download', :id => /\d+/,
:conditions => {:method => :get}
+ map.resources :attachments, :only => [:show, :destroy]
map.resources :groups, :member => {:autocomplete_for_user => :get}
map.group_users 'groups/:id/users', :controller => 'groups',