ruby on rails - Set ActiveAdmin filter default value -
ruby on rails - Set ActiveAdmin filter default value -
i have simple filter in activeadmin boolean value. looks this
filter :invisible, as: :select
you may take "any", "true" or "false" , works fine. default value of filter "any", while need set "true". how can it? give thanks you.
try :
filter : invisible, as: :select, collection: [["yes", true], ["no", false]]
this works fine me.
obviously can edit "yes"
- "no"
string want.
ruby-on-rails activeadmin
Comments
Post a Comment