路由冲突

This commit is contained in:
huang 2016-01-15 11:35:27 +08:00
parent c6357181c4
commit 18bc8215e3
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ RedmineApp::Application.routes.draw do
constraints(Subdomain.new) do constraints(Subdomain.new) do
get '/', to: 'organizations#show' get '/', to: 'organizations#show'
end end
get '/', to: 'organizations#show', defaults: { id: 5 }, constraints: {subdomain: 'micros'}
get '/', to: 'organizations#show', defaults: { id: 23 }, constraints: {subdomain: 'nubot'}
get '/', to: 'organizations#show', defaults: { id: 1 }, constraints: {subdomain: 'team'}
resources :org_member do resources :org_member do
member do member do