With this rule
validates_format_of :numbers, :with => /^[0-9]{15}$/, :message => "error message"
will be the item :numbers valid only with the regex above. But is possible to set, that the item :numbers could be send as an empty or like a 15 digits? I can't find the right combination of validation rules.