路由配置问题

This commit is contained in:
ouyangxuhua 2016-01-18 11:06:08 +08:00
parent 5e102d24dd
commit 909e0e846b
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,7 @@ RedmineApp::Application.routes.draw do
end
end
get '/:sub_dir_name', :to => 'org_subfields#show', :as => 'show_subfield_without_id'
constraints(Subdomain.new) do
get '/', to: 'organizations#show'
end
@ -1125,6 +1125,8 @@ RedmineApp::Application.routes.draw do
resources :at
get '/:sub_dir_name', :to => 'org_subfields#show', :as => 'show_subfield_without_id'
Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
file = File.join(plugin_dir, "config/routes.rb")
if File.exists?(file)