views:

187

answers:

3

For example, http://foo.myapp.com/bar/23 would render FooController#bar.

+3  A: 

Check out the plugin subdomain_fu

Ben
+1  A: 

I have been using subdomain_fu for quite a while. Recently I discovered subdomain_routes that seems to be a really powerful alternative.

Simone Carletti
For some reason the subdomain_routes link doesn't work. Adding a / on the end seems to fix.
Shadwell
Thanks Shadwell, I've fixed the link.
Simone Carletti
A: 

I am using subdomain_routes with complex routing and it appears to make the application very slow.

chinshr