> When I do Service.where(:hb_eligible).sql in irb it returns
> => "SELECT * FROM `services` WHERE `hb_eligible`"
> which in my limited understanding of SQL is what I want.

It seems you expect the SQL "WHERE" clause to behave like Ruby "if",
and it does not.

Try:
Service.where(:hb_eligible => true)

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to