rails/rails — pull request #5686 by arunagw (2012-03-31 18:46:54+00:00)
Title: Issue 4083

allowing for subdomain(s) removal from the host during link generation.

Closes #4083

cherry-picked from

de942e5534a26942e261a7699adc28597c5ad1bc
96aa3bd0eae0afa98a1a16d87f5e0b6fa0005dab