Reputation: 584
I am trying to get jQuery-autocomplete working with a remote data source in a Ruby on Rails project. The input is on http://localhost:3000/file_analysis/new
, when I type some terms in the input it requests http://localhost:3000/file_analysis/new?query=some_terms
while it should request http://localhost:3000/diagnoses/types?term=some_terms
. Does anyone know why this happens?
My javascript code:
$('#element_id').autocomplete({
source : "/diagnoses/types"
});
I have read a lot of questions about this, but most of them are outdated (2009-2011) and also provide different answers that do not work for me. Also the demos from the official site are not really clear to me.
Upvotes: 1
Views: 241
Reputation: 584
As @CornéM suggests, this problem can occur when you have an older version of jQuery UI. The answer is a simple update :-)
Upvotes: 1