I've created a form that supplies search criteria:
= search_form_for @q do |f|
%h3
Search:
= f.label :category_id
%br
= f.collection_select :category_id_eq, Category.all, :id, :name, :include_blank => true
%br
= f.label "Sub-Category"
%br
= f.collection_select :subcategory_id_eq, Subcategory.all, :id, :name, :include_blank => true, :prompt => "select category!"
%br
= f.label "Contains"
%br
= f.text_field :title_or_details_cont
%br
= f.submit
I want to be able to also do a search based on the "Near" functionality of the Rails Geocoder gem. Does anyone know how to incorporate an existing scope, or specifically how to use the "Near" scope with Meta Search or Ransack?
Thus far, all of my attempts have been futile.