problem about select2-rails-Collection of common programming errors


  • JJD
    ruby-on-rails ruby-on-rails-3 simple-form jquery-select2 select2-rails
    This select2 jquery library looks awesome. There is a Rails gem but it is very light on the documentation. I would like to generate a simple multiple drop-down menu, using autocomplete. How do I do that?This is my simple_form_for call:<%= f.input_field :neighborhood_names, url: autocomplete_neighborhood_name_searches_path, as: :autocomplete, data: { delimiter: ‘,’, placeholder: “Where do you want to live?”}, multiple: true, id: “selectWhereToLive”, class: “span8” %>I have successfully inst

  • Caner Çakmak
    jquery-select2 select2-rails
    I’m using Select2 with Rails and Mongoid and I have Sunspot Solr on the server side to do the searching. What I’m trying is to filter the data from mongo by solr, get that data by ajax request and group the results according to parent-child hierarchy. What I can’t figure out is when I search for a child and if there are multiple child results, the parent category is occuring multiple times. Please read below for more info:Here is my data in Mongo DB{ “_id” : ObjectId(“5209eb465a721ae827c661de”),

Web site is in building