Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: biagidp
I've implemented the above and it works wonderfully, thank you!
My only issue is that while url_for is producing links correctly in development, in my test environment my links are coming out as www.example.com?subdomain=example. Any idea what I'm missing?