Y
Hacker News
new
|
ask
|
show
|
jobs
by
sudhirj
4415 days ago
Is there any way to use the OR clause in a Rails SQL query without dropping down to Arel? Can't seem to find a way.
1 comments
sudhirj
4415 days ago
Programatically, I mean. For instance, I can call `where` multiple times in a loop to chain AND clauses.
link
emiller829
4415 days ago
Not chainably, out of the box, though you can abuse build_where to do this and join with strings easily enough.
link