I have a scope for my model called featured. On that model's ActiveAdmin index page, I want to include a single checkbox filter in the sidebar to only show records included in that scope so, when checked, the page only shows featured records and, when unchecked, it disables that filter and shows all records. I've been unable to find a solution for this anywhere. Has anyone had any luck with this? Thanks in advance.
Add a comment
|