From 6e17b5dccf90972d7fb44da18d0580ed99d27c4f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 4 Jan 2012 08:51:00 +0000 Subject: route: simplify repositories route git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8497 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index c6c46c732..ef1d0638c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -227,8 +227,6 @@ ActionController::Routing::Routes.draw do |map| repositories.with_options :conditions => {:method => :get} do |repository_views| repository_views.connect 'projects/:id/repository', :action => 'show' - repository_views.connect 'projects/:id/repository/edit', - :action => 'edit' repository_views.connect 'projects/:id/repository/statistics', :action => 'stats' @@ -276,7 +274,7 @@ ActionController::Routing::Routes.draw do |map| :conditions => {:method => [:get, :post]} repositories.connect 'projects/:id/repository/edit', :action => 'edit', - :conditions => {:method => :post} + :conditions => {:method => [:get, :post]} repositories.connect 'projects/:id/repository/destroy', :action => 'destroy', :conditions => {:method => :post} -- cgit v1.2.3