All Questions
14
questions with no upvoted or accepted answers
3
votes
1
answer
2k
views
Uncaught TypeError: this.source is not a function when using rails4-autocomplete
I'm currently trying to set up autocomplete on a search field. I am using the rails4-autocomplete gem. I've read the documentation here: https://github.com/peterwillcn/rails4-autocomplete and followed ...
3
votes
2
answers
3k
views
jQuery UI Autocomplete with a JSON datasource generated from Rails - not working
I'm trying to set up an input tag with jquery autocomplete function, but it's doesn't work when Im referring to an external JSON data. It works perfectly, however, with local JSON-like array... Let me ...
1
vote
0
answers
96
views
Profile image in Autocomplete Dropdown - Rails 4, Carrierwave
I'm trying to display a users profile image, along with their username in an autocomplete dropdown.
The autocomplete functionality works fine, I'm just having trouble displaying the actual image in ...
1
vote
2
answers
243
views
Jquery-UI's _render function not working in autocomplete
I am trying to use the autocomplete function in Jquery-UI. The backend seems to be working. It is printing out the correct objects and returning the correct json object, however, the _render function ...
1
vote
0
answers
550
views
How to format JSon for Jquery's Autocomplete
I'm writting an Autocomplete field using RoR and Jquery.
When I call getJson:
var aeropuertos;
$.getJSON('web_services/get_airports', function(data) {
aeropuertos = data;
});
$("...
0
votes
0
answers
326
views
How to fix jquery-ui rails autocomplete error(turbolinks:load) in rails
I'm working on autocomplete part in rails. I am using 'jquery-ui-rails' gem. while using $(document).ready it is working but it I use $( document ).on('turbolinks:load', function() {} it is not ...
0
votes
1
answer
75
views
Rails Jquery-ui autocomplete with nested attribute
I am trying to use an autocomplete function for when the user attempts to enter in an license plate number into the appropriate rails form. I've been going through easyautocomplete and jquery-ui ...
0
votes
0
answers
140
views
Rails 5: jQuery autocomplete json not rendering
I'm trying to implement a JQuery-ui autocomplete on a search form_tag. I have followed this in order to implement it.
This is what I have done thus far but without the desired results:
Installed the ...
0
votes
0
answers
283
views
_render function not working in autocomplete
I have integrated jQuery UI's autocomplete with Rails using the link below:
http://www.lugolabs.com/articles/20-jquery-ui-autocomplete-with-ruby-on-rails
For some reason I am getting this error:
...
0
votes
1
answer
199
views
Ruby on Rails: Cant figure out why my jQuery-ui autocomplete isn't working?
I just followed a youtube tutorial on adding a jQuery-ui autocomplete feature to my search field. This is the link to the tutorial: https://www.youtube.com/watch?v=iMz8HmrQ350.
For some reason it is ...
0
votes
0
answers
83
views
Rails jquery-ui autocomplete
Hi I have been searching for a while now I do not understand why my autocomplete does not work using jquery-ui and rails.
Lesson.rb:
class Lesson < ActiveRecord::Base
def self.search(term)
...
0
votes
0
answers
104
views
Add parameter to rails3-jquery-autocomplete (now rails-jquery-autocomplete) in addition to "term"
When autocomplete sends the query string it contains a parameter of term. See here:
Started GET "/nodes/autocomplete_user_first_name?term=Mi" for 127.0.0.1
Processing by NodesController#...
0
votes
1
answer
405
views
JSON for JQueryUI autocomplete - Rails
I'm working on an autocomplete form field and am having a little trouble formatting the JSON I want to pass into this. I'm using an ID field for the autocomplete, though the JSON is returning as ...
0
votes
1
answer
207
views
How to fix this jQuery/coffeescript code for jquery-ui autocomplete?
Hi so I have code like for jquery-ui 1.11:
jQuery ->
$('#search_terms').autocomplete
source: (request, response) ->
$.ajax
url: '/list.json'
dataType: "json"
...