{:uriI"—file://app/assets/javascripts/products.js?type=application/javascript&pipeline=self&id=dbd1fd4bf33f98413202c00e69bf9e74eb8e715062105cfb8df312907bae4ee4:ET:load_pathI"app/assets/javascripts;T: filenameI"'app/assets/javascripts/products.js;T: nameI" products;T:logical_pathI"products.self.js;T:content_typeI"application/javascript;T: sourceI"}// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function() { new autoComplete({ selector: 'input[name="q"]', source: function(term, response){ $.getJSON('/products/autocomplete_endpoint', { q: term }, function(data){ console.log(data); var matches = []; for (i=0; i