app/models/item.rb
# the next methods are used for validations
the next methods are used for validations
the next methods are used for validations
def valid_start_time
    return true if start_time.nil?
    return true if start_time.valid?
    errors.add(:start_time, :invalid_format)
    false
  end
def valid_start_time return true if start_time . nil? return true if start_time . valid? errors . add ( :start_time , :invalid_format ) false end
the next methods are used for validations
the next methods are used for validations