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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -