Try something like this:
EDIT . I modified my code samples based on comments.
EDIT : I updated the sample to enable html generation.
# In activeadmin filter :country, :collection => proc do Rails.cache.fetch('countries_for_select') do options_from_collection_for_select(Country.all, :id, :name)} end end
Amiel martin
source share