Select2 doesn't load results - Rails 5

Hi, im using rails 5 with select2, and in my form I want to be able to edit a group to change which kids are in it.
This code is in the _form.html.erb file.
The problem is that it shows “no results found” and i cant select any kids at all.

$(document).ready(function() {
      language: "he",
      theme: "bootstrap"
  }); });
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
<div class="field select" multiple="multiple">
    <%= form.input :kid_ids, collection: Kid.all %>