validation datepicker

this page model

 validate :end_date_after_start_date?
  def end_date_after_start_date?
    if end_date.present?
    if end_date < start_date
    errors.add :end_date, "must be after start date"
    end
    end
  end

Comments

Popular posts from this blog

rvm setup new ruby install system

masking account number

Ruby install for new system