I am trying to use validates_timeliness to ensure that SliderImage.start is always before SliderImage.stop:
class SliderImage < ActiveRecord::Base
validates_datetime :start, :stop
validates :start, :timeliness => {:before => stop}
end
But of course stop is not defined yet. How can I accomplish this?