A
A
Alexander Petrov2016-07-08 18:15:29
Ruby on Rails
Alexander Petrov, 2016-07-08 18:15:29

How to get subdomain value in Rails?

there is a subdomain, they open the root site without a subdomain.
how to determine the name of the subdomain and if it exists, then launch the controller defined.
It's ideal to do this from routes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Demidenko, 2016-07-08
@Mirkom63

Everything is in the guides

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question