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
?
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 '/'.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.