From 373cd0f71007c37a06cabefe8dded4dee26107f1 Mon Sep 17 00:00:00 2001 From: Owen Byrne Date: Wed, 9 Nov 2011 14:25:51 +1100 Subject: [PATCH] Fixes #79 - code browser route is now reachable. --- config/routes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 3dcfa495..57f57157 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ CruiseControl::Application.routes.draw do match '/' => 'projects#index', :as => :root + match 'projects/code/:id/*path' => 'projects#code', :as => :code resources :projects, :constraints => { :id => /.*/ } do member do @@ -16,8 +17,6 @@ match 'builds/:project/:build' => 'builds#show', :as => :build, :build => /[^\/]+/, :project => /[^\/]+/ match 'builds/:project' => 'builds#show', :as => :project_without_builds, :project => /[^\/]+/ - match 'projects/code/:id/*path' => 'projects#code', :as => :code - match 'documentation/plugins' => 'documentation#plugins', :as => :plugin_doc_list match 'documentation/plugins/:type/:name' => 'documentation#plugins', :as => :plugin_doc, :name => /[^\/]+/