I usually have my admin area on a subdomain with the following routing:
scope :module => "admin", :as => "admin", :constraints => { :subdomain => "admin" } do
root :to => 'admin#home'
end
root :to => 'pages#home'
However this subdomain routing no longer works in rails 3.1, is there something extra I’m missing now?
Found this in the Rails 3.1 release notes:
So it makes me think that now you should write your route like this:
I haven’t tried it yet, so let us know if that works.