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