<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>The Bacon Bear Blog: Tag ActsAsLocateable</title>
    <link>http://www.baconbear.com/articles/tag/actsaslocateable?tag=actsaslocateable</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>ActsAsLocateable released</title>
      <description>&lt;p&gt;Introducing my 2nd adventure into Rails plugins: ActsAsLocateable!&lt;/p&gt;

&lt;p&gt;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&lt;/p&gt;

&lt;pre&gt;
Store.find_within_radius(10, 12345)     # Find all stores within 10 miles of zip code 12345
&lt;/pre&gt;

&lt;p&gt;Install ActsAsLocateable in the normal way&lt;/p&gt;

&lt;pre&gt;
script/plugin install http://svn.baconbear.com/rails_plugins/acts_as_locateable/trunk/
&lt;/pre&gt;

&lt;p&gt;Be sure to read the associated README file after the install for details on installation, setup, and usage.&lt;/p&gt;

&lt;p&gt;ActsAsLocateable is based heavily on the &lt;a href="http://zipcodesearch.rubyforge.org/"&gt;ZipCodeSearch plugin&lt;/a&gt; by Doug Fales and utilizes much of the same code and data.  Special thanks to Doug for making his code freely available!&lt;/p&gt;</description>
      <pubDate>Fri, 29 Dec 2006 17:54:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:5f8ec1d7-fe33-45aa-bf8f-1b8a8658367e</guid>
      <author>Jeff</author>
      <link>http://www.baconbear.com/articles/2006/12/29/actsaslocateable-released</link>
      <category>rails</category>
      <category>ActsAsLocateable</category>
      <category>plugins</category>
    </item>
  </channel>
</rss>
