Is it possible to specify a Ruby on Rails route based on the host part of the request URL?
In config/routes.rb, I have
root :to => 'entities#index'
but I would like to use the same code base to serve several sites, each with their own default controller.