README.markdown in rails3-jquery-autocomplete-0.1.2 vs README.markdown in rails3-jquery-autocomplete-0.1.3
- old
+ new
@@ -17,11 +17,11 @@
## Installing
Include the gem on your Gemfile
- gem 'rails3-jquery-autocomplete', '>= 0.1.1', :require => 'autocomplete'
+ gem 'rails3-jquery-autocomplete', '>= 0.1.3', :require => 'autocomplete'
Install it
bundle install
@@ -48,9 +48,21 @@
don't forget to add it on your routes file
resources :products do
get :autocomplete_brand_name, :on => :collection
end
+
+By default, the search starts from the beginning of the string you're searching for. If you want to do a full search, set the _full_ parameter to true.
+
+ class ProductsController < Admin::BaseController
+ autocomplete :brand, :name, :full => true
+ end
+
+The following list would match the term query 'un':
+
+* Luna
+* Unacceptable
+* Rerun
### View
On your view, all you have to do is include the attribute autocomplete on the text field
using the url to the autocomplete action as the value.