I want to store user's current location when they log in and display only those users on map which are at a particular distance away from current_user(say 20km).
Popular ruby Geocoder gem has similar functionality. Please checkout the Ryan's screencast for detail.