We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So I am trying to implement multiple autocomplete and simple_form and am getting an error.
I tried this:
<%= f.input_field :neighborhood_id, collection: Neighborhood.order(:name), :url => autocomplete_neighborhood_name_searches_path, :as => :autocomplete, 'data-delimiter' => ',', :multiple => true, :class => "span8" %>
This is the error I get:
undefined method `to_i' for ["Alley Park, Madison"]:Array
In my params, it is sending this in neighborhood_id:
neighborhood_id
"search"=>{"neighborhood_id"=>["Alley Park, Madison"],
So it isn't even using the IDs for those values.
Ideas?
The text was updated successfully, but these errors were encountered:
bump Any takers?
Sorry, something went wrong.
@marcamillion if you need the object_id you should use the id_element. Details here
No branches or pull requests
So I am trying to implement multiple autocomplete and simple_form and am getting an error.
I tried this:
This is the error I get:
In my params, it is sending this in
neighborhood_id
:So it isn't even using the IDs for those values.
Ideas?
The text was updated successfully, but these errors were encountered: