Topic: Multitenancy routes

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

default root for and should go to a controller called home or similar
default root for * (except www) should go to a sessions/new route
default root for * (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



Get more visibility of your IT environment with