add(:start_date,"can't be after the conference end date (#{conference.end_date})")ifconference&&conference.end_date&&start_date&&(start_date>conference.end_date)
errors.
add(:end_date,"can't be after the conference end date (#{conference.end_date})")ifconference&&conference.end_date&&end_date&&(end_date>conference.end_date)
end
defstart_date_before_end_date
errors.
add(:start_date,"can't be after the end date")ifstart_date&&end_date&&start_date>end_date