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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -