ruby on rails - activeadmin-mongoid: How to filter on id? -
this doesn't work:
filter :name, :as => :string because mongoid ids not strings, can't filter on ids string. there nice way filter on ids creating custom filter type?
found way - i'm not sure why works yet, but:
filter :device_id, :as => :numeric does trick.
Comments
Post a Comment