I use the following code in the controller:
@monday = (Time.now).at_beginning_of_week @friday = 5.days.since(@monday)-1.second @sent_emails = ContactEmail.all(:conditions => ['date_sent >= ? and date_sent <= ?', @monday, @friday])
Although it works fine on my local sqlite, I have the error "operator not exist timestamp without timezone = integer".
I do not quite understand what to change.
Ideas?
Thanks.
operators postgresql heroku
Angela
source share