I have followed Ryan Bates railscast on subdomains (http://railscasts.com/episodes/123-subdomains-revised) and have my app working perfectly locally.
I have deployed
Sub-sub domains aren't possible - you need to be using your own DNS records I'm afraid.