Reputation: 946
So, I have to display the city where the our users are visiting from. I could do it in HTML5 but our targeted visitor won't understand the action to allow geo location: example here. Also they probably don't have an updated browser.
So We currently have a ruby on rails stack. I was thinking of using the geokit rails gem but I'm not sure this is the best solution.
What would be a fast and cheap solution ?
Upvotes: 0
Views: 230
Reputation: 13354
I'd recommend checking out the geocoder gem and utilizing the default IP lookup logic for the incoming request.
As far as I know, geocoder is more maintained these days than GeoKit, and provides the functionality you're looking for "out of the box."
Upvotes: 4