Skip to content

Commit

Permalink
Merge pull request thoughtworks#80 from owenbyrne/project_code_unreac…
Browse files Browse the repository at this point in the history
…hable_route

Fixes thoughtworks#79 - code browser route is now reachable.
  • Loading branch information
bguthrie committed Nov 12, 2011
2 parents ae51ef5 + 373cd0f commit e25381f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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
Expand All @@ -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 => /[^\/]+/

Expand Down

0 comments on commit e25381f

Please sign in to comment.