##// END OF EJS Templates
route: simplify repositories route...
Toshi MARUYAMA -
r8377:6e17b5dccf90
parent child
Show More
@@ -227,8 +227,6 ActionController::Routing::Routes.draw do |map|
227 227 repositories.with_options :conditions => {:method => :get} do |repository_views|
228 228 repository_views.connect 'projects/:id/repository',
229 229 :action => 'show'
230 repository_views.connect 'projects/:id/repository/edit',
231 :action => 'edit'
232 230 repository_views.connect 'projects/:id/repository/statistics',
233 231 :action => 'stats'
234 232
@@ -276,7 +274,7 ActionController::Routing::Routes.draw do |map|
276 274 :conditions => {:method => [:get, :post]}
277 275 repositories.connect 'projects/:id/repository/edit',
278 276 :action => 'edit',
279 :conditions => {:method => :post}
277 :conditions => {:method => [:get, :post]}
280 278 repositories.connect 'projects/:id/repository/destroy',
281 279 :action => 'destroy',
282 280 :conditions => {:method => :post}
General Comments 0
You need to be logged in to leave comments. Login now