crowdint/rails3-jquery-autocomplete — Issue #115: How come It doesn't allow you to pass params[:search]?
Author: Justinwceo
Created: 2011-11-14 19:06:22+00:00
State: open

It gives me a `wrong argument error` when I try to use this autocomplete gem for a Search field like this:

<%= form_tag search_path, :method => 'get' do %>
<%= autocomplete_field_tag 'name','', search_autocomplete_product_name_path, params[:search], :placeholder => "Search for a Product.....", :id => "main-search-field" %>
<%= submit_tag "Search", :name => nil, :id => "main-search-field-button" %>
<%end%>

How do I pass the `params[:search]` so I am able to search?