Skip to main content

All Questions

55 votes
7 answers
36k views

How to set-up jquery-ui autocomplete in Rails

I need some help on how to implement a jquery-ui autocomplete in my Rails app. I want to add autocompletion to a text field where the user can enter in a customer name. As there can be hundreds of ...
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
301 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 (...
0 votes
1 answer
859 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 "...
-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 ...
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
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....
0 votes
3 answers
833 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 ...
0 votes
1 answer
54 views

What is the most professional way to implement autocomplete in Ruby on Rails?

I would like more to find out what approach is optimal. I would like to have a search form with a well-running autocomplete.
1 vote
1 answer
974 views

How to customize jquery autocomplete 'No Search Result' message in Rails?

Here is the js code for jquery autocomplete in Rails 4.2 app: $(this).autocomplete({ minLength: 1, source: $(this).data('autocomplete-source'), select: function(event, ui) ...
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() { ...
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 ...
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 ...

15 30 50 per page