@@ -261,7 +261,6 ActionController::Routing::Routes.draw do |map| | |||||
261 | :conditions => {:method => :post} |
|
261 | :conditions => {:method => :post} | |
262 | end |
|
262 | end | |
263 |
|
263 | |||
264 | map.resources :attachments, :only => [:show, :destroy] |
|
|||
265 | # additional routes for having the file name at the end of url |
|
264 | # additional routes for having the file name at the end of url | |
266 | map.connect 'attachments/:id/:filename', :controller => 'attachments', |
|
265 | map.connect 'attachments/:id/:filename', :controller => 'attachments', | |
267 | :action => 'show', :id => /\d+/, :filename => /.*/, |
|
266 | :action => 'show', :id => /\d+/, :filename => /.*/, | |
@@ -272,6 +271,7 ActionController::Routing::Routes.draw do |map| | |||||
272 | map.connect 'attachments/download/:id', :controller => 'attachments', |
|
271 | map.connect 'attachments/download/:id', :controller => 'attachments', | |
273 | :action => 'download', :id => /\d+/, |
|
272 | :action => 'download', :id => /\d+/, | |
274 | :conditions => {:method => :get} |
|
273 | :conditions => {:method => :get} | |
|
274 | map.resources :attachments, :only => [:show, :destroy] | |||
275 |
|
275 | |||
276 | map.resources :groups, :member => {:autocomplete_for_user => :get} |
|
276 | map.resources :groups, :member => {:autocomplete_for_user => :get} | |
277 | map.group_users 'groups/:id/users', :controller => 'groups', |
|
277 | map.group_users 'groups/:id/users', :controller => 'groups', |
General Comments 0
You need to be logged in to leave comments.
Login now