Ethan Lee-Tyson

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in DateTime comparison in Rails 6

Hi -

I built this simple app to practice with ActionMailer as I learn Rails (LINK: https://github.com/eleetyson/time-capsule).

It works fine locally but when I deployed to Heroku, it seems that the datetime comparison in the messages controller's create action is not working properly.

Here is the messages controllers (LINK: https://github.com/eleetyson/time-capsule/blob/master/app/controllers/messages_controller.rb) -- I keep hitting that 2nd flash notice ("invalid delivery time...") even when I input a datetime in the future.

Any suggestions for how to debug?

Other relevant links:

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.