Getting all the records of a model created today in Rails
12 Apr 2022
My favorite thing I've learned recently is something I learned when needing to remove a bunch of records that had just been created in a Rails app.
If you want to get all the records of model
Post created on the current day, you can do:
An alternative is
Time.current.all_day version is so simple!
Thanks to this StackOverflow post for the solution!
Webmentions: None yet!
These are webmentions via the IndieWeb and webmention.io.