Rails 3 subdomain routing


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

John F.
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: User John Feminella - Stack Overflow