Możesz to zrobić w ten sposób:
date = Date.parse('january 5 2013')
users = User.where(created_at: date.midnight..date.end_of_day)
Możesz to zrobić w ten sposób:
date = Date.parse('january 5 2013')
users = User.where(created_at: date.midnight..date.end_of_day)