RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: studio625
Site: www.studio625.net
I kept getting this when I tried to update my password: ArgumentError in PasswordResetsController#update comparison of Date with ActiveSupport::TimeWithZone failed
Fixed it by doing this:
if @user.password_reset_sent_at < 2.hours.ago.to_date
I kept getting this when I tried to update my password:
ArgumentError in PasswordResetsController#update
comparison of Date with ActiveSupport::TimeWithZone failed
Fixed it by doing this: