ernie/ransack — Issue #51: meta_search works fine, ransack seems doesn't. 
Author: msan
Created: 2011-12-22 22:00:10+00:00
State: open

Sorry to disturb and sorry for my bad english.
I have this search form:

= form_for @search, :url => intra_path do |f|
%p
= f.label :company_name_contains, t('company_name')
%br
= f.text_field :company_name_contains
%br
%br
%p
= f.label :vat_number_contains, t('vat_number')
%br
= f.text_field :vat_number_contains
= f.label :categories_id_equals, t('category')
= f.collection_select :categories_id_equals, @categories, :id, :name,

Say that I want to search for company_name "abc" and there is only one.
With meta_search I have one result.
Company has five categories associated, if I search company_name "abc" using ransack it returns five results, that is wrong.