Skip to main content

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 ...
Nic's user avatar
  • 191
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 ...
sNiCKY's user avatar
  • 1,843
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 ...
Kraymer's user avatar
  • 13
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 ...
user2871354's user avatar
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; }); $("...
content01's user avatar
  • 3,185
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 ...
b2j's user avatar
  • 21
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 ...
Vesuvious's user avatar
  • 121
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 ...
Theopap's user avatar
  • 745
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: ...
user avatar
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 ...
koz's user avatar
  • 305
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) ...
Snake's user avatar
  • 1,187
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#...
mike0416's user avatar
  • 461
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 ...
SRack's user avatar
  • 12k
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" ...
Nona's user avatar
  • 5,402