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

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

gtk - Python Window Resize -

c# - read full xml file data over tcp -