Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:54:39+00:00 2026-05-29T10:54:39+00:00

I am using jquery-rails-autocomplete and want to have autocomplete on more than one column.

  • 0

I am using jquery-rails-autocomplete and want to have autocomplete on more than one column.

routes.rb

get 'welcome/autocomplete_brand_name_id'

Controller

autocomplete :brand, [:name, :id]

View

<%= form_tag do %>
<%=text_field_tag 'name', '', :autocomplete => welcome_autocomplete_brand_name_id_path %>
<% end %>

Model

class Brand < ActiveRecord::Base
end

However, in my autocomplete it give me error that autocomplete_brand_name_id method not found.
If I use sane code for only :name or only :id than it work fine. Not sure what going on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:54:40+00:00Added an answer on May 29, 2026 at 10:54 am

    The multi column search you are trying to use is still in a pull request (https://github.com/crowdint/rails3-jquery-autocomplete/pull/95 ) which has not been merged yet.

    Basically, it means that this functionality is not yet in the gem nor even in the repo.

    If you really want it, you can checkout the official repo and pull the changes specified in that pull request but you must understand that there might be a reason why the maintainer of rails3-jquery-autocomplete hasn’t done it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using 'rails3-jquery-autocomplete' gem, but it doesn't have multi column search, but there is
I'm using jQuery with rails and have the following piece of code $('#related').html(<%= render
I have started using jQuery and rails. I have made a simple form that
Using: jquery3-autocomplete gem at 1.0.5 jquery-rails gem at 1.0.19 mysql2 gem at 0.2.7 The
I am using jQuery ui in a rails application. I want to load content
I'm a jquery/rails newbie and I'm having trouble using .sortable(). I have expandable rows
I have a Rails application and I'm using jQuery to query my search view
I'm using Thinking Sphinx in a Rails application combined with the jQuery autocomplete plugin
New to using jQuery in Rails and can't get a div to be recognized
I am using the JQuery Autocomplete UI with my rails app and it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.