##// END OF EJS Templates
Added method to attachments routes....
Etienne Massip -
r8047:02893a17adfb
parent child
Show More
@@ -199,9 +199,9 ActionController::Routing::Routes.draw do |map|
199
199
200 map.resources :attachments, :only => [:show, :destroy]
200 map.resources :attachments, :only => [:show, :destroy]
201 # additional routes for having the file name at the end of url
201 # additional routes for having the file name at the end of url
202 map.connect 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/
202 map.connect 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/, :conditions => {:method => :get}
203 map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/
203 map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/, :conditions => {:method => :get}
204 map.connect 'attachments/download/:id', :controller => 'attachments', :action => 'download', :id => /\d+/
204 map.connect 'attachments/download/:id', :controller => 'attachments', :action => 'download', :id => /\d+/, :conditions => {:method => :get}
205
205
206 map.resources :groups, :member => {:autocomplete_for_user => :get}
206 map.resources :groups, :member => {:autocomplete_for_user => :get}
207 map.group_users 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :conditions => {:method => :post}
207 map.group_users 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :conditions => {:method => :post}
General Comments 0
You need to be logged in to leave comments. Login now