Ah was combining the two concepts. Thank you.
On Tuesday, August 4, 2020 at 12:44:36 PM UTC-4 [email protected] wrote:
> r = a.where{{id > 20, listins[:status]=>'active'}}
>
> error: unexpected '}'
>
>
> On Tuesday, August 4, 2020 at 11:04:22 AM UTC-4 [email protected] wrote:
>
>> Hi there. I'm confused about the syntax of filtering records whose
>> status is 'active'. I can't format it the way I like (fieldname: 'active')
>> because in this join, two tables have the 'status' field.
>>
>> So I have to include the tablename, then the fieldname, as
>> `tablename[:fieldname]`. Even using `tablename[:fieldname] => 'status'` is
>> giving me an error.
>>
>> I've relegated this conditional clause to its own `where` directive, to
>> keep things simple. But it isn't working for some reason.
>>
>> Anybody have any insight into qualifying records like that? Cheers
>>
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/d3e2ac5b-c1aa-4b23-b60f-cf170c7e539cn%40googlegroups.com.