Just a quick note to say that I’ve released an intial version of the
request routing plugin which essentially allows you to use various
request object properties as requirements in routes. Most notably you
can do:
Let me know if you have any problems. The rails routing code is a
dark art. I’m using it in a large project and it’s working well and
it passes all my tests so it’s looking good but any feedback would be
great.
Thanks for putting it up on agilewebdev, Ben. I forgot about that.
I was just wondering about one thing here since you are such a routing
expert. Can I use this in some way or how is the best way to display
controller based on subdomain.
i.e.
Rendering http://UserName.mydomain.com/ as
/UserController/ShowAction/UserName