In Rails 6, how can I write a where query who find all records with a date attributes that is a monday ?
where
Something like : Appointment.where(date: monday?)
Appointment.where(date: monday?)
or Appointment.where('date.wday': 1)
Appointment.where('date.wday': 1)
0 Replies
Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.
Follow us on:
Quick Links
Policies
Subscribe to get latest updates