ActsAsLocateable
ActsAsLocateable is an easy way to give any model the ability to be found by location. For instance, say you have a model Store which is associated with a zip code indicating where that Store is located. To find all the stores within a specific radius of another ZipCode, you can do a
Store.find_within_radius(10, 12345) # Find all stores within 10 miles of zip code 12345
- Repository Path: http://svn.baconbear.com/rails_plugins/acts_as_locateable/trunk/
- Homepage: http://www.baconbear.com/articles/2006/12/29/actsaslocateable-released
Tags
Currently tagged with:
You need to Login to tag this item.