Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Multiple work? #61

Open
PeteMichaud opened this issue Jun 24, 2016 · 1 comment
Open

Does Multiple work? #61

PeteMichaud opened this issue Jun 24, 2016 · 1 comment

Comments

@PeteMichaud
Copy link

Using the multiple option seems to do nothing and have no effect on the output html. Is this an option that's supposed to be working?

@bigtunacan
Copy link
Collaborator

@PeteMichaud, The :multiple option must be used in conjunction with data-delimeter and should result in an array being submitted rather than multiple values combined into a single delimited string. From the client side it should look the same.

If it is not working like this it would be helpful if you could post a GitHub link to a minimal project implementation replicating the issue.

form_for @product do |f|
  f.autocomplete_field :brand_names, autocomplete_brand_name_products_path,
  'data-delimiter' => ',', :multiple => true
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants