Getting rails3-autocomplete-jquery gem to work nicely with Simple_Form with multiple inputs
问题 So I am trying to implement multiple autocomplete using this gem 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 : "search"=>{"neighborhood