How can you identify all events before and after a today in IRB?
- by Trip
I for the life of me can't figure out the correct syntax to show the count of events before and after today.
Here's my awful and disgusting attempt:
Events.find(:all).select {|e| e.date Time.now}.size
The trouble is the or < operators don't work with Time.. :D