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
Post a Comment