Skip to main content

All Questions

0 votes
0 answers
485 views

Rails 5: Implement autocomplete according to database table

I'm trying to implement autocomplete according to the values created inside a table. and this is the setup I have: //= require jquery //= require rails-ujs //= require jquery-ui //= require ...
Theopap's user avatar
  • 765
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
98 views

Error including jquery-ui/autocomplete

I'm currently trying to get auto-complete to work with my rails app, however when I try to load a page I get the error below. couldn't find file 'jquery-ui/autocomplete' with type 'application/...
Trent Walls's 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
474 views

Create new model record or see if it already exists using nested_attributes form - Rails 4

I am using has_nested_attributes_for to create two records of two different models (a Parent and a Child). Currently using has_nested_attributes, my new.html.erb form on the parent successfully ...
BB500's user avatar
  • 559
0 votes
1 answer
74 views

Jquery UI Autocomplete for Search Form that Passes Params into Query String

I have successfully used Jquery Autocomplete for other forms on my website but this one is giving me trouble. // Controller class UsersController < ApplicationController autocomplete :user, :...
Timmy Von Heiss 's user avatar
0 votes
1 answer
85 views

rails redirect after autocomplete

I have this rails-jquery-autocomplete form which works great but I would like to direct the user immediately to the city show page <%= form_tag(cits_path, :method => "get", id: "search-form", ...
Zsolt's user avatar
  • 253
0 votes
0 answers
107 views

Rails 4 jQuery-ui Autocomplete not reading route source

JQuery-ui autocomplete in rails 4 not reading source when set to a URL path, but works when I manually pass an array of values in my coffee script. posts_controller.rb def autocomplete render ...
Alex's user avatar
  • 203
0 votes
1 answer
689 views

How to fill input text from another autocomplete Rails 4

I have a form with a task(uses Rails4 autocomplete gem) and a project text_field. I want to be able to fill it just from selecting a task. So if I have task1 : project1 When I type 'ta', and select ...
Gaston's user avatar
  • 994
0 votes
1 answer
185 views

autocomplete field is empty when editing form

I have a sample model in which belongs_to a patient model.Using rails-jquery-autocomplete I have managed to implement an autocomplete field where one can search patient's code and it works well. ...
user1876128's user avatar
1 vote
1 answer
379 views

Autocomplete action parses a large JSON file at each ajax call (make it faster)

I am trying to make an autocomplete model for cities and zipcode using Rails 4 and Jquery ui. I have a large JSON file (about 500,000 lines) that contains an array (cp_autocomplete) that contains ...
Dali's user avatar
  • 25
2 votes
1 answer
152 views

Incorrect routing in controller using Rails 4 Autocomplete

I'm following along with this tutorial (http://www.yoniweisbrod.com/autocomplete-magic-with-rails/) using jQuery-ui's autocomplete, but when I attempt to search using the text field, it routes to the ...
JasmineF's user avatar
0 votes
1 answer
77 views

Rails Autocomplete Using Instance Method?

I am running Rails 4, using the rails-jquery-autocomplete gem - I have everything hooked up so it works fine to autocomplete models where there is a :name column. What I'm struggling with is how to ...
Harry's user avatar
  • 4,846
1 vote
1 answer
83 views

Add additional data to jquery.autocomplete in coffeescript

I'm writing RoR application and I have working autocomplete. In page.coffee I have this: jQuery -> $('#search').autocomplete source: "/autocomplete_source" In the form I have also #select ...
o..o's user avatar
  • 1,931
0 votes
1 answer
379 views

Rails 4 Autocomplete with Simple Form - class parameter ignored

I am using Simple Form, along with the Rails Autocomplete gem. I have a straightforward form control, where the autocomplete is working as intended: <%= f.input :practice, as: :autocomplete, url: ...
Harry's user avatar
  • 4,846

15 30 50 per page