You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... (things.name='bob' OR drafts.name='bob') AND (things.updated_at > '2023-01-01' OR drafts.updated_at > '2023-01-01') ...
Which makes sense and I understanding what's going on. But what I'm do is have have a query that looks like this:
... (things.name = 'bob' AND things.updated_at > '2023-01-01') OR (drafts.name = 'bob' AND drafts.updated_at > '2023-01-01') ...
I can manipulate the search params at will, but I'm not seeing how or if I can, with ransack, build an OR query where each branch has multiple AND clauses. Is something like this possible in ransack?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a search that looks like:
Which has an sql query that looks something like this:
We have 'draft' association, and I'm now transforming the incoming search to look like:
And the sql query looks like this:
Which makes sense and I understanding what's going on. But what I'm do is have have a query that looks like this:
I can manipulate the search params at will, but I'm not seeing how or if I can, with ransack, build an OR query where each branch has multiple AND clauses. Is something like this possible in ransack?
Beta Was this translation helpful? Give feedback.
All reactions