I've got a problem, and I'm totally stumped.
I'm using the Geokit plugin (finds lat/lng of addresses) along with
the will_paginate gem.
What I'm trying to do is have paginate search for the closest location
to the current user and have pages of results.
The Geokit plugin has this nice find_within function, but you can't
Does anyone know how I could to a paginate call to find the closest
location using two geocoded locations?
I've got it setup in the database that every users has a lat and lng
and each location also has a lat and lng.
Thanks in advance for the help,