Managing dynamic domains with Rails
As many SaaS application we offer the option to customize the domain (and subdomain) of our application to our customers. This option has always been a pain to manage in our Rails application. Rails 3 introduced a new concept, Routes constraints which makes Routes…