All Questions
32 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 ...
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 (...
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....
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">
<%= ...
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 ...
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:
...
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(...
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 %>
<%= ...
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 ...
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 ...
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, ...
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, ...
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 :...
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 ...
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-...