How can I implement the equivalent of :name_eq_or_description_cont
, which combines _eq
and _cont
predicates into the same search key, so that I can create a search field in the form as:
<%= search_field_tag :item, :name_eq_or_description_cont %>
?