Forum: Ruby on Rails Correct URLs for routes with subdomain condition?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Kris (Guest)
on 2007-03-01 22:39
(Received via mailing list)
Hi, I'm using Dan W.'s request routing plugin and I have a route set
up as:
map.user "/:name/:action", :name => 'action', :controller =>
"user", :conditions => { :subdomain => 'id' }

Now it works when I go to id.domain.com/kris but the problem is that
all URLs are then generated for id.domain.com instead of domain.com as
I'd like it.
Any idea how to get around that?

Kris
This topic is locked and can not be replied to.