Topic: validates date

i am trying to have a event and it has start and end date but simple logic say that the event cant end before it starts but it can end the same day.

i have

validates :end_date, :timeliness => {:after => lambda { :start_date } , :type => :date}

this is fine if the event ends the next day but not the same day.


What should i do?

Re: validates date

Hi,

Do you use the validates_timeliness gem?
I never used it but according to the documentation you should use :on_or_after instead of :after.

Regards