I have an x users with their last_sign_in_ip, can i get their location details using their ip_address with rake task? I am using rails and geocoder gem.
Since you have the geocoder gem, use this:
Geocoder.search(user.last_sign_in_ip)
It will return a json with the address elements.