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/557bb331-a1d6-41e6-80e6-b7de77c1aeaen%40googlegroups.com.

Reply via email to