On Jan 12, 2011, at 7:43 AM, Marnen Laibow-Koser wrote:

> Rajesh B. wrote in post #974156:
>> i am developing a product where i need to know from wich country the
>> user is logged in .! and display things according to his geolocation .
>> can any one please help me out with this

Great! Geolocation is always fun.

> Perhaps you want to use the new HTML 5 geolocation features.  If not, 
> Google has a similar API available to the public.  This is an HTML/JS 
> issue and has nothing to do with Rails.

You may be correct in this statement, but there's also the option of segmenting 
the content on the server side. I.e., in Rails. It can arguably also be a nice 
attribute to have on a user model for future send-outs or similar.

Have a look at https://github.com/cjheath/geoip. Then check out 
http://www.maxmind.com/app/ip-location.

Good luck.

> Best,
> -- 
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> 
> Sent from my iPhone
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to