Using subdomains as account keys in Rails

Hi, I’m trying to set my Rails app to use a subdomain as an account key as explained in this article:

So these aren’t “real” subdomains, rails just uses it to query the database and find the right account. Whenever I try to hit one of these subdomains I get the standard browser error for page cannot be found.

Anyone have any ideas?