I have zip codes stored in the Users table, and in the Locations table I have lat, lon, and the zips data from all 50 states.
I am trying to finish this line:
:geo => [current_user.latitude * Math::PI / 180.0, current_user.longitude * Math::PI / 180.0]
The issue is the User stores zip code only. How can I define so that current_user.latitude would show the latitude based on the current users zip code?