How to correctly check value in db:
in table i have field add_after_sign_in which is boolean, by default it is false… but how to check if it is not empty and not true, then select such rows:
i try:
litem = LineItem.find(:all, :conditions => {:cart_id => cart_id && !:add_after_sign_in })
but in litem there are no such records… why?
Simple how to check table row value on non-true?
conditionsis a Hash. You are only messing up with the syntax. Try this one: