how can I get the subdomain value in rails, is there a built-in way to do this?
e.g.
test123.example.com
I want the test123 part of
Use the following method inside your controller
request.subdomains
This Returns an array of subdomains