Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How come It doesn't allow you to pass params[:search]? #115

Open
Justinwceo opened this issue Nov 14, 2011 · 0 comments
Open

How come It doesn't allow you to pass params[:search]? #115

Justinwceo opened this issue Nov 14, 2011 · 0 comments

Comments

@Justinwceo
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant