gregbell/active_admin — Issue #1093: HABTM Filter bug: check_boxes, but not select?
Author: Rio517
Created: 2012-02-29 21:24:54+00:00
State: open

I've noticed that I can create a filter for a HABTM association just fine if I use check_boxes, but if I try select, I get a metasearch error. For example, I can add a filter for Accounts to AdAccounts with the following works if I use `:check_boxes`, but not `:select`.

filter :accounts_id, :as => :check_boxes, :collection => proc {Account.all.collect{|a| [a.organization_name, a.id]} }

When using :select, I get this error message: `undefined method 'account_ids_eq' for #`

This _may_ be related https://github.com/gregbell/active_admin/issues/982

Just letting you know!