Could anyone do this? Is it possible? I am writing a Rails 3 application and it seems that it should be possible to do it using jQuery autocomplete and best-in-place, but I have not seen it.
Too late for an answer, but ... I just ran into a similar problem and solved this problem as follows:
#view best_in_place @somewhat, :title, type: :input, inner_class: 'somewhat_title', ok_button: 'ok', data: { autocomplete: true } #coffee $("span[data-autocomplete='true']").live 'click', -> $('.somewhat_title').autocomplete #usual autocomplete code here, nothing special
I used rails3-jquery-autocomplete. In mind, this will be something like:
best_in_place @object, :name, :type => :input, html_attrs: { "data-autocomplete" => your_autocomplete_path }
Source: https://habr.com/ru/post/911624/More articles:Play / Pause HTML5 Video Using JQuery - jqueryHow does [b] [b = a, 0] exchange between a and b? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/911621/whats-a-better-way-to-swap-two-argument-values&usg=ALkJrhjH_cfGpk-JkxEE63v3BK4jV93YqQhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/911622/is-it-okay-to-use-with&usg=ALkJrhiVgA2Z3WZSojvb05HWFLk2nLpYvwHeader, footer and large tables with iTextSharp - asp.netUsing itertools.product and want to align the value - pythonEmpty URI query string parameters: "a = & b =" compared to "a & b" - httpCreating an unlabeled list in clojure - clojurehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/911628/java-updating-jlist-after-changing-an-object&usg=ALkJrhjqT6cn_8TAaYe5jdn6lVD1dzYVowInsertion sort in clojure throws error StackOverFlow - insertion-sortAll Articles