
11-04-2008, 07:07 AM
|
|
Member
|
|
Join Date: Jul 2008
Posts: 28
|
|
Still Unsure
Thank you for your speedy reply! However, I'm still not sure how I would redirect a subdomain to a controller/action/namespace. I understand URL rewriting in general, but am not sure what I need to put specifically. Perhaps an explanation of what I'd like will help:
http://mysubdomain.example.com/controller/action/id
should go to http://example.com/mysubdomain/controller/action/id
In routes.rb I have
map.namespace :mysubdomain do |mysubdomain|
map.resources :mycontroller
end
Thanks again!
|