Subdomain routing

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.

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs