Filtering integer field with a range

activeadmin, ruby-on-rails

Solution

No there is no such default one, but it's very easy to create it by yourself.

please see my gist with example https://gist.github.com/3995659

put it in initializers directory

use it like

 filter :id , :as => :numeric_range

Problem

By default `filter :foo` where `foo` is an integer field will produce the equality filter. Are there any built-in ways to make it act just like date filter: to draw two inputs that will work like a range?

Original source