Ruby on Rails Wednesday, December 19, 2012


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:

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.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment