ernie/ransack — Issue #57: Case Insensitive Query with Postgres
Author: nslocum
Created: 2012-01-12 21:06:06+00:00
State: open

Is there a way to have Ransack pass case-insensitive queries to Postgres?
How can I get Ransack to generate queries using [ILIKE] (http://www.postgresql.org/docs/8.3/static/functions-matching.html) instead of LIKE.

Example:
If i use the *eq* predicate, the generated query is case-sensitive.

= search_form_for @q do |f|
= f.label :code
= f.text_field :code_eq

= f.submit