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?