Feb 23, 2017 · 1 min read
Actually you can do simpler using ransacker predicate not_null, like this:
filter :delivered_at_not_null, as: :select, label: 'Delivered At', collection: [['Yes', 'true'], ['No', 'false'] ]Full list of predicates can be found in locale in ransack git.
This is the much better way :)
