Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

remink's Profile

GitHub User: remink

Site: http://remink.fr/

Comments by remink

Avatar

What is the way to use Sunspot/Solr with mutiple fields ?
It works fine with a simple form, as explained in the screencast.

For example, I'm looking for how to make a search engine :

<%= form_tag products_search_path, :method => :get do %>

<%= label_tag "Location ?" %>
<%= select_tag :address, "new york".html_safe %>


<%= label_tag "Type ?" %>
<%= text_field_tag :model, params[:type] %>
<%#= select_tag :model, "testtest".html_safe %>


<%= label_tag "Category ?" %>
<%= text_field_tag :category, params[:category] %>

<%= submit_tag "Search" %>
<% end %>

Thanks guys!