How can I filter a boolean with a single flag?
For example, the following gives me two flags with yes and no values:
ActiveAdmin.register User do filter :is_retired, :as => :check_boxes end
The HBTM association is filtered as follows:
filter :roles_id, :as => :check_boxes, :collection => proc { Role.all }
But I have a logical field in my User model, and I need one checkbox labeled Is retired . Is it possible somehow?
source share