…results in http POST calls to the root and not the
data-autocomplete-source value of ‘/searches’.
Bates’s railscast uses a textfield in the context of a RESTful form, but
I
don’t expect this difference between his code and mine should explain my
unexpected POST.
…results in http POST calls to the root and not the
data-autocomplete-source value of ‘/searches’.
There seems to be nothing wrong in your code. All I can think of that
causes this is if another dom element
has an id of search-markets. Can you confirm that your view only has
one
dom with this id?
There seems to be nothing wrong in your code. All I can think of that
causes this is if another dom element
has an id of search-markets. Can you confirm that your view only has one
dom with this id?
Yes, I confirm. I modified the code to ensure no interference…
Turns out that a customized autocompletion file that I had included from
vendor/assets/javascripts was superseding jquery-ui and, once removed, I
got the expected behavior – so, this was completely one-off. Sorry not
to
have noticed it, sooner.
Lille
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.