Open
Description
https://stackoverflow.com/questions/5302837/like-and-where-condition-in-ruby
https://apidock.com/rails/ActiveRecord/QueryMethods/where
specifically:
Lastly, you can use sprintf-style % escapes in the template. This works slightly differently than the previous methods; you are responsible for ensuring that the values in the template are properly quoted. The values are passed to the connector for quoting, but the caller is responsible for ensuring they are enclosed in quotes in the resulting SQL. After quoting, the values are inserted using the same escapes as the Ruby core method Kernel::sprintf.
Metadata
Assignees
Labels
No labels