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

Predicate to search by length of string #1492

Open
Tobias-Knudsen opened this issue May 11, 2024 · 0 comments
Open

Predicate to search by length of string #1492

Tobias-Knudsen opened this issue May 11, 2024 · 0 comments

Comments

@Tobias-Knudsen
Copy link

I have a rails API using ransack to filter results. I want to be able to query by the length of the string eg. I want to find all records where attribute a's length is less than a desired value.

name_length_lteq: 4 => should return all records with the name of 4 or less characters.

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