Forum: Ruby on Rails Domain inconsistencies when using controller_url

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.
9c94250a76c3b78ce49eb9541981b06b?d=identicon&s=25 E-minenz Dot com (e-minenz)
on 2007-02-21 03:14
Dear all,

For example my site is 'domain.com'

But when I use 'controller_url(:id => some_id)'

It gives me 'www.domain.com/controller/id'

Worse yet, sometime it even gives me

'www.other_domain.com/controller/id' where 'other_domain.com' is pointed
to the same IP.

What would be a quick remedy to this.

Thank you.

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