Forum: Ruby on Rails domain (not subdomain) routing

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Aec10c73877ea116bab759e060b2fcb3?d=identicon&s=25 (Guest)
on 2007-01-19 16:31
(Received via mailing list)
I have several websites that are all basically the same thing but with
a different layout and a different primary controller

- - has views/layouts/website1 and
- - has views/layouts/website2 and

Everything else is the same, DB, graphics, other views, etc...

So I though ...

- have 1 rails app
- have a virtual host in apache for each virtual app
- route requests for each domain to the same mongrel
- have rails route based on DOMAIN

Any idea how to do this.  I'll check out the source to the
request_routing plugin.
Db303dc84d03a992b33cd3ac978f89ae?d=identicon&s=25 Benjamin Curtis (Guest)
on 2007-09-25 22:48
(Received via mailing list)
Yes, you want the request routing plugin and the theme_support plugin.

Building an e-commerce site with Rails?
This topic is locked and can not be replied to.