Forum: Ruby on Rails Controller as subdomain

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.
(Guest)
on 2007-04-18 23:27
(Received via mailing list)
Hello,

How can I make a controller like a subdomain?

Something like:

from :
localhost/controller/action

to:
controller.localhost/action


Example:
www.mysite.com/about
www.mysite.com/contact
account.mysite.com/register
account.mysite.com/login

where www and account are two different controllers.


Thanks
This topic is locked and can not be replied to.