Re: [Rails] Identify the referrer domain in r ails

2009-12-02 Thread C+++
On Mon, Nov 30, 2009 at 8:33 PM, sameera wrote: > Hi All, > > and when I get the source code of the www.site2.com (which redirects > to site1) it has this, > >"http://www.w3.org/TR/html4/strict.dtd";> > > > > sameera gayan > content="test"> > > > http://www.site1.com"; frameborder="0

Re: [Rails] Identify the referrer domain in r ails

2009-11-30 Thread Darian Shimy
Sameera, You will need to write some JS (document.referrer) to include the referrer in the URL when you do the redirect to the second site. Then on the second site, you will need to extract the URL from the query string. Make sense? Darian Shimy -- http://www.darianshimy.com http://twitter.com/

[Rails] Identify the referrer domain in r ails

2009-11-30 Thread sameera
Hi All, I have a web site which has 2 domains ex : www.site1.com www.site2.com (which will forward to www.site1.com with domain masking) www.site1.com is where the actual web server rungs www.site2.com is just a domain name forwarder and I use mask to make the user feel he/she is in www.