I recently implemented subdomains in my app which is working well.
But is there a way to use link_to that gets you OUT of the subdomain?
For example, if a user is at http://foo.mysite.com then
Sorry, I can’t really help you here - I never used the code myself, I
only remembered having read that article. From a cursory look, it seems
to me that rewrite_url is capable of both, depending on the :only_path
parameter, but I am not sure in how far it has a hand in generating the
URL helpers.
I tried delving a bit further into it, but quite frankly, I still find
Rails Routing to be somewhat scary stuff
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.