Root router

I have 2 domains: “myap.com” and “myap.net”.

Is it possible to configure routes.rb:

if domain is “myap.com” then map.root => “com”
if domain is “myap.net” then map.root => “net”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs