I am currently building a SaaS application using rails and I want each branch of the company to have its own subdomain. I use the apartment gem to achieve this and it works great locally but it's a nightmare in production. I can't seem to get any subdomain to work in Heroku.
Namecheap is the domain's registrar. The domain has been redirected successfully to the herokuapp but the sub domain can't seem to resolve unlike the way it works locally.
Any help is appreciated