Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
0 answers
38 views

Autocomplete Results Display Running Together

I have a text area form field which I have set up to auto complete using jquery. The results are populating correctly, however, they are displaying as a list that just runs together horizontally. I ...
Jon Golembiewski's user avatar
0 votes
1 answer
318 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
1 vote
0 answers
909 views

Rails 5: Jquery autocomplete

I have implemented the jquery autocomplete within my rails app. And this is the setup: //= require jquery //= require rails-ujs //= require jquery-ui //= require bootstrap //= require_tree . items....
Theopap's user avatar
  • 765
1 vote
0 answers
232 views

Autocomplete is not working with cocoon in Rails

I try to use autocomplete in a form in cocoon but I can not do it, these are my codes In my form: <div class="col l6 m6 s12" style="margin-bottom:40px"> <%= ...
Loco Petirrojo's user avatar
1 vote
1 answer
857 views

Rails 5 Autocomplete - send id to model instead of autocomplete field

I have implemented a Rails form autocomplete system just like the one in this cast Autocomplete with HTML results. The issue is: I need to get the id of the object chosen in the autocomplete ...
rtrigo's user avatar
  • 529
0 votes
0 answers
284 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
0 answers
79 views

How to implement autocomplete search from google in rails ?

I am newbie in rails ,i don't know how implement this feature in application . please suggest me any basic idea. if any user create a book -> 1) Book name should be auto suggested like Google search(...
TheVinspro's user avatar
0 votes
1 answer
75 views

Rails jquery atocomplete redirect to user

I am using rails-jquery-autocomplete and have failed to achive redirect to selected user. This is my form: <%= form_tag users_path, method: 'get', id: 'search-form' do %> <%= ...
Jakub Kopyś's user avatar
0 votes
3 answers
859 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
2 votes
1 answer
501 views

Rails jQuery-autocomplete client-side

Need to update my recipe#new view with an autocomplete field instead of a dropdown field. After reading some articles I decided to use jQuery-ui. So added in Gemfile gem "jquery-ui-rails" and ...
Stef Hej's user avatar
  • 1,377
1 vote
3 answers
873 views

Rails 4 form - text field value must match a value in an associated table (autocomplete)

I have two associated models/tables app/models/city.rb has_many :businesses Fields: id, city_name, state_code app/models/business.rb belongs_to :city Fields: id, biz_name, address, city_name, ...
Steve Carey's user avatar
  • 3,044
0 votes
1 answer
95 views

undefined local variable or method `autocomplete_skill_name' for

Bellow is my code and files: Rails 4 with gem 'rails4-autocomplete' file: users_controller.rb class UsersController < ApplicationController before_action :confirm_logged_in, :except => [:create, ...
Assaf Vilmovski's user avatar
1 vote
1 answer
414 views

Rails: Couldn't find Post with 'id'=autocomplete_tag_name

Using acts-as-taggable-on and rails4-autocomplete to autocomplete tags. Here is my code. routes.rb get 'tags/:tag', to: 'posts#index', as: :tag resources :posts do get :...
Ahmad Ajmi's user avatar
  • 7,281
0 votes
1 answer
749 views

getting null value in my table?

I am creating employee pay roll application. In that i am having two models one is employee and another is salary. I have added foreign key to get the employee_id in salaries table and to get the ...
Yogesh's user avatar
  • 37
2 votes
0 answers
1k views

Implement Autocomplete using typeahead.js +Searchkick

I am trying to implement autocomplete in my ruby on rails application with elasticsearch. I followed the example in the following link https://shellycloud.com/blog/2013/10/adding-search-and-...
masuka's user avatar
  • 133

15 30 50 per page