<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>CHANGELOG</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,18 +1,17 @@
 This plugin provides a auto-complete method for your controllers to be used
-with the jquery-autocomplete jQuery plugin.  This jQuery plugin is not
+with Dylan Verheul's jquery autocomplete plugin.  This jQuery plugin is not
 included, and can be obtained from:
 
-http://github.com/ReinH/jquery-autocomplete
+http://www.dyve.net/jquery/?autocomplete
 
 This auto_complete_jquery plugin is just a modified version of the standard
 Rails auto_complete plugin.  It provides the same auto_complete_for method
-for your controllers, but elliminates the various view helper methods, as
+for your controllers, but eliminates the various view helper methods, as
 those are not needed when using jQuery and Unobtrusive JavaScript.
 
-To use this, you need to have jQuery and the jquery-autocomplete plugin
-mentioned above (as well as that plugin's other jQuery plugin dependencies 
-which are included with it).  Then, there are four aspects of setting up
-an auto-complete field:
+To use this, you need to have jQuery and the autocomplete plugin mentioned 
+above (as well as appropriate CSS).  Then, there are four aspects of setting 
+up an auto-complete field:
 
 1) Create the text field in your view, which is just a regular form text
 field as you'd create in a Rails erb view:
@@ -36,7 +35,7 @@ auto-complete method in your controller, such as:
 using jQuery and the jquery-autocomplete plugin mechanism, for example:
 
   $(document).ready(function() {
-    $(&quot;input#post_title&quot;).autocomplete({ ajax: &quot;auto_complete_for_post_title&quot; })
+    $(&quot;input#post_title&quot;).autocomplete(&quot;auto_complete_for_post_title&quot;)
   });
 
 By default, auto_complete_for limits the results to 10 entries,
@@ -49,9 +48,9 @@ the find method used to search for the records:
 
 For more information, see:
 * jQuery site: http://jquery.com
-* jquery-autocomplete plugin home on GitHub: http://github.com/ReinH/jquery-autocomplete
-* jquery-autocomplete plugin home on jQuery site: http://plugins.jquery.com/project/jq-autocomplete
-* Good article on jQuery, Rails, and mention of jquery-autocomplete: http://errtheblog.com/posts/73-the-jskinny-on-jquery
+* Dylan Verheul jquery autocomplete plugin site: http://www.dyve.net/jquery/?autocomplete
+* Good article on jQuery and Rails (note this mentions a different jquery autocomplete 
+  plugin, which was originally used in this plugin): http://errtheblog.com/posts/73-the-jskinny-on-jquery
 * Original Rails auto_complete plugin: http://github.com/rails/auto_complete
 
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -26,22 +26,23 @@ module AutoCompleteJquery
   # For help on defining text input fields with autocompletion, 
   # see ActionView::Helpers::JavaScriptHelper.
   #
-  # For more on jQuery auto-complete, see the jQuery autocomplete plugin for jQuery:
-  # * http://github.com/ReinH/jquery-autocomplete
+  # For more on jQuery auto-complete, see the docs for the jQuery autocomplete 
+  # plugin used in conjunction with this plugin:
+  # * http://www.dyve.net/jquery/?autocomplete
   module ClassMethods
     def auto_complete_for(object, method, options = {})
       define_method(&quot;auto_complete_for_#{object}_#{method}&quot;) do
         object_constant = object.to_s.camelize.constantize
         
         find_options = { 
-          :conditions =&gt; [ &quot;LOWER(#{method}) LIKE ?&quot;, '%' + params[:val].downcase + '%' ], 
+          :conditions =&gt; [ &quot;LOWER(#{method}) LIKE ?&quot;, '%' + params[:q].downcase + '%' ], 
           :order =&gt; &quot;#{method} ASC&quot;,
           :select =&gt; &quot;#{object_constant.table_name}.#{method}&quot;,
           :limit =&gt; 10 }.merge!(options)
         
         @items = object_constant.find(:all, find_options).collect(&amp;method)
 
-        render :json =&gt; @items.to_json
+        render :text =&gt; @items.join(&quot;\n&quot;)
       end
     end
   end</diff>
      <filename>lib/auto_complete_jquery.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d86ebcb640fc8dca440ff17ce65d6e728402fbe5</id>
    </parent>
  </parents>
  <author>
    <name>Christopher Bailey</name>
    <email>chris@cobaltedge.com</email>
  </author>
  <url>http://github.com/chris/auto_complete_jquery/commit/d2d287fcd36959ee5058ff2ca208d25c50ab4272</url>
  <id>d2d287fcd36959ee5058ff2ca208d25c50ab4272</id>
  <committed-date>2008-07-01T10:53:33-07:00</committed-date>
  <authored-date>2008-07-01T10:43:06-07:00</authored-date>
  <message>Switched to different jQuery autocomplete plugin from Dylan Verheul.  Fixes case [in]sensitivity problem, drastically improves speed, provides caching, and variety of other improvements.</message>
  <tree>60cf33cf841b4b166c9ad3173c2a47afdc3da192</tree>
  <committer>
    <name>Christopher Bailey</name>
    <email>chris@cobaltedge.com</email>
  </committer>
</commit>
