ruby on rails - subdomain routing -
When a user types in their username.example.com, then I read subdomains and present the user personal page
map.home ",: Controller => 'User',: action = & gt; 'Show'
The problem is that I now want to add custom subdomains like www, '', help and so on.
What I do now but does not work: I read subdomains in the application controller and when I help, redirect the controller to help. Redirect does not work because the application controller calls again and I end up in the eternal loop.
Does anyone know how I face it?
Thanks
We use a plugin for this:
Comments
Post a Comment