I am trying to search using Ransack but having issue when i am trying to search id and string together like
:id_or_title_or_user_username_cont
It produces the error
ActionView::Template::Error (PG::UndefinedFunction: ERROR: operator does not exist: integer ~~* integer
I have also tried this
:id_eq_or_title_or_user_username_cont
it produces following error
undefined method `id_eq_or_title_or_user_username_cont' for Ransack::Search
What is the appropriate way of searching id and strings together using ransack other than custom predicates or with custom predicates ?