The resulting query ends e.g. with score_team_1 ‘=’ score_team_2
How can i remove the apostrophes from include into the string?
Thanks
You can’t really do that like this - bind variables as designed for
inserting literals. ‘Normal’ ruby interpolation might be the way
forward here (assuming that compare sign is coming from a trusted
source, if not sanitize it first).
The resulting query ends e.g. with score_team_1 ‘=’ score_team_2
How can i remove the apostrophes from include into the string?
Thanks
You don’t need to use the array to populate conditions, as long as the
“compare_sign” isn’t user-supplied data; ie: you know that it isn’t
going to contain something that will compromise your DB, because you
set it earlier.