Rails active admin filter for multiple words

I have a model called Post in my application with title and content attributes. On the Activeadmin index page of this resource, I would like to search for several words for the content of the messages. By default (or using filter: content ,: as =>: string), the filter on the content searches only for a word or expression, but not for words that can be distributed in the message content.

How to filter multiple words using ActiveAdmin?

+4
source share
1 answer

One option is to create a fully custom filter, as described https://gist.github.com/dmitry/4240801

I would like to hear more about how to make it easier.

0
source

Source: https://habr.com/ru/post/1526094/


All Articles