On 4-apr-2006, at 18:21, Scott F. Walter wrote:
> 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.
It worked for me about a week or two ago, and I posted this ot the  
wiki. Seems to work on my project but I need to refresh my edge. Feel  
free to swipe this tip if it doesn''t work for you.
--
Julian ''Julik'' Tarkhanov
me at julik.nl