Skip to content

Predicate to search by length of string #1492

@Tobias-Knudsen

Description

@Tobias-Knudsen

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions