Pass values with autocomplete textfield

Hi all,

I have a simple app that has an autocomplete textfield in my view. I
now want
to be able to pass the value of a select to my controller when my
auto_complete_for_location_name is called. My goal is to be able to
filter the
autocomplete results by the value of the select.

My view code looks like this:

<%= form_remote_tag :update => “search_results”,
:url => { :action => :search } %>
Location: <%= text_field_with_auto_complete :location, :name %>
<%= select :loc, :type, @location_types.map { |l| [l.location_type] } %>
<%= submit_tag “Search”, :class => “search_btn” %>
<%= end_form_tag %>

Is this possible?

Thanks,

Chris