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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -