Getting a user country name from originating IP address with Ruby on Rails

Posted by TK on Stack Overflow See other posts from Stack Overflow or by TK
Published on 2010-01-01T06:44:23Z Indexed on 2010/05/01 21:47 UTC
Read the original article Hit count: 188

I want to extract a user country name from visitors' IP addresses.

I could get the IP address with remote_ip. But what could be the easiest way to get the country name?

It doesn't have to be super accurate. Any ruby library (gem or plugin) to do this?

I want an simple and easy solution for this.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ip-geolocation