According to the wiki (http://wiki.rubyonrails.org/rails/pages/Routes)
you can handle subdomain routing in routes.rb. Like this:
with_options :requirements=>{:subdomain=>‘first.com’} do
map.connect ‘’, :controller => “first/catalog”
map.connect ‘featured’, :controller => “first/catalog”,
:action=>‘featured’
map.connect ‘catalog/:action/:id’, :controller => “first/catalog”
end
However it doesn’t seem to work. Has anybody got this to work?
thanks, scott.