I have succesfully created forms with this gem: https://github.com/bigtunacan/rails-jquery-autocomplete
The problem is that I would like it to filter not only by name field of source table. For that I tried to use :fields attribute as mentioned in gem's documentation. But rendered SQL still contains filtering only by name, although GET request contains added field.
<%= f.autocomplete_field :name, autocomplete_ad_user_name_component_associated_users_path(@component),
:update_elements => {:username => '#associated_user_username',
:password => '#associated_user_password'},
:fields => {:client_id => '#client_id'},
class: 'form-control' %>
Do I need to create custom autocomplete function for this to work or what? Maybe I just have to edit by default created function, but where can I find it?