Skip to main content

All Questions

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
300 views

How do I tell jquery autocomplete to display one item per line instead of the entire return value in one line?

I'm using Rails 5 with JQuery UI's autocomplete feature. I'm using AJAX to get the appropriate suggestions for my textbox ... $(function() { return $('#s').autocomplete({ source: function (...
user avatar
0 votes
1 answer
858 views

How do I tell my Rails controller to use the format.json part of my method instead of the format.html branch?

I'm running Rails and trying to set up an autocomplete on my text field. I want to submit to a controller method. If I'm submitting from my form (using the "Submit" button), I'd like to use the "...
user avatar
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
1 answer
421 views

How to include links in jbuilder when using PG Multisearch to populate jQuery Autocomplete

I have built a simple autocomplete search and would like to be able to click on a result in much the same way I have enabled this on the search results page using <%= link_to pg_search.searchable....
dstep's user avatar
  • 145
0 votes
2 answers
6k views

jQuery-ui autocomplete, select first item

I use jQuery-ui autocomplete in my rails application. When I type some input I want it to automatically select the first item in the autocomplete box. How should I implement this? jQuery(function() { ...
KSHMR's user avatar
  • 55
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
-1 votes
1 answer
4k views

Ruby on Rails - Google Autocomplete Location [closed]

I'm currently trying to implement an autocomplete location field but I'm unable to figure out how to get it working. Here is an example of what I'm trying to accomplish, except the map, I just need ...
advice's user avatar
  • 5,938
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
1 vote
1 answer
138 views

rails-jquery-autocomplete: list populated from instance is blank

I am trying to setup rails-jquery-autocomplete gem and I have the jquery-ui-rails gem installed. I have a "transactions" model that has names and I want to access that list of names as the ...
SupremeA's user avatar
  • 1,609
0 votes
3 answers
832 views

Search and display multiple columns when using jquery autocomplete in Rails?

I have successfully integrated Jquery-Autocomplete into my rails app, currently users can search more than 5000+ airports and so far the integration works exactly as desired, however... Any Airport ...
Dearg's user avatar
  • 47
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
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
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

15 30 50 per page