Topic: Multitenancy routes

I have a multitenancy app (rails 3.1) with a domain that I'll call mydomain.com. With this I would like to create the following routes but I keep coming unstuck when trying to program it

default root for www.mydomain.com and mydomain.com should go to a controller called home or similar
default root for *.mydomain.com (except www) should go to a sessions/new route
default root for *.mydomain.com (except www) when logged in will go to a dashboard controller or similar

Could someone provide some advice on this as well as a resource where I can get to learn about routes a little better

Michael

Michael

Get more visibility of your IT environment with www.itdashboard.co.uk