ransack
ransack copied to clipboard
Searching in created_at by passing Boolean attribute
Hello, Hope someone help
I have model and want to pass tag called new when the tag is true i want to fetch all the records created_at >= 7.days.ago and if the tag is false need all the records those are created_at <= 7.days.ago
How can i do this using ransack