mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
commit
c36d8b62f5
1 changed files with 5 additions and 0 deletions
|
@ -132,6 +132,11 @@ which are defined in
|
|||
<% end %>
|
||||
```
|
||||
|
||||
The argument of `f.search_field` has to be in this form:
|
||||
`attribute_name[_or_attribute_name]..._predicate`
|
||||
|
||||
where `[_or_another_attribute_name]...` means any repetition of `_or_` plus the name of the attribute.
|
||||
|
||||
`cont` (contains) and `start` (starts with) are just two of the available
|
||||
search predicates. See
|
||||
[Constants](https://github.com/activerecord-hackery/ransack/blob/master/lib/ransack/constants.rb)
|
||||
|
|
Loading…
Reference in a new issue