Re:Scuttle – SQL and Arel Editor
by sudhirj on Monday May 12, 2014 @09:19AM
(#7732487)
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.
[ Parent
| on HN ]
Programatically, I mean. For instance, I can call `where` multiple times in a loop to chain AND clauses.
Re:Scuttle – SQL and Arel Editor
by emiller829 on Monday May 12, 2014 @10:34AM
(#7732891)
Not chainably, out of the box, though you can abuse build_where to do this and join with strings easily enough.