Geolocate visitors to your Rails App

Monday, March 24th, 2008

In modern web apps, knowing the location of your customer can be very important. A friend and I are developing a location-based service right now. I whipped up the following Ruby code that uses the hostip.info API to fetch a user's location based on his IP address. require 'net/http' def ...