README.md in rails3-jquery-autocomplete-1.0.10 vs README.md in rails3-jquery-autocomplete-1.0.11

- old
+ new

@@ -195,9 +195,20 @@ form_tag 'some/path' autocomplete_field_tag 'address', '', address_autocomplete_path, :size => 75 end +#### Multiple Values Separated by Delimiter + +To generate an autocomplete input field that accepts multiple values separated by a given delimiter, add the `'data-delimiter'` and `:multiple` options: + + form_for @product do |f| + f.autocomplete_field :brand_names, autocomplete_brand_name_products_path, + 'data-delimiter' => ',', :multiple => true + end + +NOTE: Setting the `:multiple` option to `true` will result in the chosen values being submitted as an array. Leaving this option off will result in the values being passed as a single string, with the values separated by your chosen delimiter. + Now your autocomplete code is unobtrusive, Rails 3 style. ### Getting the object id If you need to use the id of the selected object, you can use the *id_element* attribute too: