def validate errors.add(:from_date, "must be less than to date") if from_date > to_date end |
Pastie
Support Pastie
or read my
Pastie << self
blog
def validate errors.add(:from_date, "must be less than to date") if from_date > to_date end |