It would appear that the ? is not be substituted with a quoted value.
Rails generates a query that looks like this …article_id = ?12345…
instead of this …article_id = ‘12345’…
Is this a known bug, a deprecated feature, or syntax error in my code
I’ve managed to get away with so far?
It would appear that the ? is not be substituted with a quoted value.
Rails generates a query that looks like this …article_id = ?12345…
instead of this …article_id = ‘12345’…
Is this a known bug, a deprecated feature, or syntax error in my code
I’ve managed to get away with so far?
OK, yes, I found that it is deprecated, but that means it should
still work?
Anyway, updating the code to a full :conditions syntax works: