Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarification for the search feature #842

Open
d-d-d-dalia opened this issue Aug 29, 2018 · 0 comments
Open

clarification for the search feature #842

d-d-d-dalia opened this issue Aug 29, 2018 · 0 comments

Comments

@d-d-d-dalia
Copy link
Collaborator

d-d-d-dalia commented Aug 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant