RailsCasts Pro episodes are now free!

Learn more or hide this

Brian J. Cardiff's Profile

GitHub User: bcardiff

Comments by Brian J. Cardiff

Avatar

Is there a way to setup a default subdomain for all helpers?

Let's say I have www.domain.com and foo.domain.com . I would like to all helper (links, forms, urls, ...) render by default with the www subdomain, despite the request was targeted to either host.

I tried set default_url_options to :subdomain => false (performing all needed steps) but couldn't make it.