today?()
Tells whether the Date object’s date is today
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 41 def today? self.to_date == ::Date.current # we need the to_date because of DateTime end