I have in the database two date columns - from_date and to_date.
from_date
to_date
Example:
This should do the trick.
today = Date.today data = ModelName.where("from_date <= ? AND to_date >= ?", today, today)