Need to find the subdomain of an incoming request? Recently I needed to determine the subdomain of an incoming request to properly format some search queries.
@subdomain =request.subdomains.first
class AllYourCode < Us
Need to find the subdomain of an incoming request? Recently I needed to determine the subdomain of an incoming request to properly format some search queries.
@subdomain =request.subdomains.first