I’m having trouble with mapping a first domain to:
map.connect ':action', :controller => 'admin'
I can get that to work, and I’d be fine if there’s only one domain
pointing to my app.
However, I will point several domains to the app, so I only want that
route for one domain.
map.connect ':action', :controller => 'admin' if @request.host ==
but I get an error about nil.host. I’m not sure but it seems @request
is undefined in routes.rb.
How might I get this done?