Ruby on Rails Geolocation

01.24.2015

If you want to use the user’s location in your app, you can use the geoip gem and GeoLiteCity database to retrieve the location of the user based on the user’s IP address.

Sources

https://github.com/cjheath/geoip
http://richonrails.com/articles/ip-geolocation-in-ruby-on-rails
http://stackoverflow.com/questions/4465476/rails-get-client-ip-address