Skip to content

Commit

Permalink
close code block
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Jun 25, 2024
1 parent 3fe3f72 commit 6518f5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/3.0/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ You can perform a search on `Application` records based on attributes of the ass
}
}
end
```

In the above example, ransack is used to search for `Application` records based on various attributes of the associated `Client`, such as client_email_cont and client_phone_number_cont. The joins method is used to join the applications table with the clients table to perform the search efficiently.

This approach allows for flexible searching within associations, enabling you to find records based on related model attributes.

0 comments on commit 6518f5d

Please sign in to comment.