I'm using Rails 3.2 and I've got a database table in which I want to find all the rows that match the following criteria:
a = true and b = true and ( 0< c <1 or d=1), a, b, c, d are columns.
Can I have something like:
Route.where(:a => true,
:b => true,
:c => 0..1 OR :d=1
).all