Rails 3 subdomain routing

hi,

On my site, if a user comes in through a mobile subdomain (say, `mob.example.com`), I want to change the request format of that request to be ":mobile".

What's the most sensible way to do this?

~ jf