In Rails 6, how can I write a where query who find all records with a date attributes that is a monday ?
Something like : Appointment.where(date: monday?)
or Appointment.where('date.wday': 1)
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:
Subscribe to get latest updates