How do you combine multiple items in a virtual row block?
where{{listing[:product_name].ilike(submitted.to_s), listing[:status] =>
'active'}}.
On Tuesday, August 4, 2020 at 12:45:52 PM UTC-4 [email protected] wrote:
> 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/30d4c2cf-8da1-4600-bf9f-c0d19c05e39dn%40googlegroups.com.