3
是否有可能將一個名稱空間作爲rails 3中的子域的根?使子域有一個名稱空間作爲根?
目前我的路線是:
namespace :mobile do
resources :home
resources :profiles
root :to => "/mobile/home#index"
end
constraints subdomain: 'm' do
root :to => 'mobile/home#index'
resources :home
resources :profile
resources :messages
root :to => 'mobile/home#index'
end