Rails conditions equal to one of an array- Syntax Errors -


Hi, I am trying to understand why I get a syntax error for this:

Ranks => ["rank =? And primary. Relationship =?", ['CPT', 'SFC'], "husband / wife"]

"Need to check.

It seems that it should be very simple, any suggestions?

Something might be:

 : conditions => ["Rank In (?,?) And Primaries. Relationship =?", 'CPT', 'SFC', 'Husband or Wife']  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -