Replies: 1 comment 1 reply
-
What happens if you pass separate arguments to dataset.order(*aorder) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to order a dataset by sort of incoming param
order
that is a hash with fields and directions, like{:title => :asc, :price => :desc}
. Not so obvious code unfortunatelyThings are good when I pass
order
parameters with:asc
, but when any field direction is:desc
, I got the following error:Gemfile.lock
Connection
PG14
Database schema, PG14
I'm just doing my first steps with PG and Sequel trying to create a sort of mapper from PORO into PG. And I even succeeded with the whole thing except ordering. Just weird...
Beta Was this translation helpful? Give feedback.
All reactions