Re: [Rails] Multiple domains

2014-08-21 Thread Christian Kruse
Hi, On 19/08/14 21:14, McHenry wrote: > On the site I would like to display the domains name that was used. > How can I obtain the name of the domain that the user entered to > access my site? „used“ as in „supplied by the browser?“ One could forge a request with Host header set to 'example.com'

[Rails] Multiple domains

2014-08-19 Thread McHenry
I am proposing to have multiple domain name pointing towards a single site. On the site I would like to display the domains name that was used. How can I obtain the name of the domain that the user entered to access my site? Thanks in advance... -- You received this message because you are su

[Rails] Multiple Domains Different Layouts

2009-10-07 Thread Sean McGilvray
Hey everyone, How do I do a before_filter @request.env['HOST'] = "somesite.com" and tell it to display a different layout based on the requested domain? Thanks, Sean McGilvray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google