I want to find records with multiple conditions and this is my code:
@calhappybd = Client.where(:user_id => current_user.id, "birth IS NOT NULL")
I’m trying to do this with squeel-gem, but when I try to use multiple conditions (where{(cond1)(cond2)}), but my current_user.id defined as simple string-data.
With squeel, you should be able to do something like
Let know if you get the same error again…
UPDATED:
Modified the conditions above. Note the single ampersand and double equals. That works for me..
My configuration: