Forum: Ruby on Rails Fwd: Redirection based on Geolocalization

Posted by sumit agarwal (Guest)
on 2012-12-20 12:23
(Received via mailing list)
Can  some one please help me.
---------- Forwarded message ----------
From: sumit agarwal <sumit8856@gmail.com>
Date: Wed, Dec 19, 2012 at 5:04 PM
Subject: Redirection based on Geolocalization
To: rubyonrails-talk@googlegroups.com


Hello All,
I am new ruby. I want to redirect some links to other.
For Example:
www.mysite.com/example to www.mysite.com/jp/example

Here jp stands for country e.g. jp = JAPAN
                                             uk = united state

I want it geolocalize in ruby i.e. if some user in japan type the URL
www.mysite.com/example, he/she should be redirect to
www.mysite.com/*jp*/example
and if some user type the url www.mysite.com/example in UK he/she should
redirect to www.mysite.com/uk/example.

Is it possible in Ruby? I tried it through apache but didn't find any
solution.

Please help me

--
  *Sumit Kumar AGARWAL*
Engineer-development
 Sopra group.
A-67, Sector 64
Noida - 201 301
U.P, India
Phone : +91 120 4056 100
Mob : 7838577053
www.sopragroup.com
  P Before printing, think about the environment.



--
  *Sumit Kumar AGARWAL*
Engineer-development
 Sopra group.
A-67, Sector 64
Noida - 201 301
U.P, India
Phone : +91 120 4056 100
Mob : 7838577053
www.sopragroup.com
  P Before printing, think about the environment.
Posted by Hassan Schroeder (Guest)
on 2012-12-20 16:22
(Received via mailing list)
On Wed, Dec 19, 2012 at 6:55 PM, sumit agarwal <sumit8856@gmail.com> 
wrote:

> I want it geolocalize in ruby

> Is it possible in Ruby? I tried it through apache but didn't find any
> solution.

Did you even try googling 'ruby geolocalize'??

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.