Forum: Ruby on Rails subdomain routing

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b275ea705cc1671f13105d29684cbec?d=identicon&s=25 Scott F. Walter (Guest)
on 2006-04-04 18:21
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.
A2b2f4ee23989dc68529baef9cbddcd6?d=identicon&s=25 Julian 'Julik' Tarkhanov (Guest)
on 2006-04-11 20:37
(Received via mailing list)
On 4-apr-2006, at 18:21, Scott F. Walter wrote:

> 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
This topic is locked and can not be replied to.