Radix
Radix

Reputation: 2747

Use same routing for subdomain as for simple domain request

I have a live server say www.test.com and a development server with subdomain, like dev.test.com, but I want the same routing for both. I can not use routing for development server.

Is it possible to write some code in before filter in ApplicationController?

Upvotes: 2

Views: 35

Answers (1)

user3855476
user3855476

Reputation:

I think you are confused here.

If the sub domain is same then you do not need to to do anything. Just locate your development server (with sub-domain) with the Development App code.

In Rails, routing are defined after '/'.

Upvotes: 1

Related Questions