ernie/ransack — Issue #37: Can't include field without Ransack evaluating it
Author: dpasley
Created: 2011-10-28 08:41:56+00:00
State: open

Hi Ernie,

I am using Rails 3.1 and trying to implement a form that will use Ransack to lookup a person based on soundex values. Everything seems to work fine, I can get the correct records returned back to me, but the only way I have got this working, results in the users original input (for example someone searches for "joe) returned as the soundex value. I thought I could get around this using a hidden field or something but, then I still need a field for the user to input the name and any field I use gets included in the query. I gave more specifics here http://stackoverflow.com/questions/7926900/rails-how-to-not-evaluate-a-field-in-a-ransack-search-form . I don't actually think there is anything wrong with your gem but I can't work out how to implement it in this case. I apologize if this is not the right place to ask, but if you could point me in the right direction that would be appreciated. Thanks. Dale