I am trying to compare dates that I have to the current day’s date so i
can know if something is over due.
this is my code:
<% if assignment[:due_date] < Date.today %>
<%= flash[:notice]=“OVERDUE” %>
the error I keep getting is comparison of String with Date failed.
Any ideas??? thanks in advance