I am using https://github.com/sferik/rails_admin to handle my admin interface.
You can filter your model based on the current columns existing in this model (id, created_at, etc.).
I want to add custom filters for associations.
For instance:
When I study the Cities model, I want to show only cities with one or more projects.
I could do this by adding a new column to the cities named has_projects as a boolean that will be set to true when there are 1 or more related projects, but I believe there should be a cleaner way to create my own custom filters
source share