You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ransack's _cont_all predicate, the value expects an array of search keywords, currently only the string search value is passed to ransack.
First idea that comes to mind is to do a pre-processing of params[:q] before passing it to ransack. This way the configuration and logic can remain on the server side.
The pre-processing would check for predicates that are expecting an array of keywords and then split their corresponding value string into a keyword array
The text was updated successfully, but these errors were encountered:
When using ransack's
_cont_all
predicate, the value expects an array of search keywords, currently only the string search value is passed to ransack.First idea that comes to mind is to do a pre-processing of
params[:q]
before passing it to ransack. This way the configuration and logic can remain on the server side.The pre-processing would check for predicates that are expecting an array of keywords and then split their corresponding value string into a keyword array
The text was updated successfully, but these errors were encountered: