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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With