Displaying 4 results from an estimated 4 matches for "valiation".
Did you mean:
validation
2006 Apr 03
4
validates_numericality_of, :allow_nil => true?
Is there a way to use validates_numericality_of and still allow null
values?
I have a model with some optional values that can be nil, but if they''re
present, they must be numbers. Will I need to construct a custom
valiation for this, or is there some method built in? Seems like it
would be a common enough need.
Jeff
--
Posted via http://www.ruby-forum.com/.
2007 Jan 18
2
Conditional validates_inclusion_of execution problem
...:message => ''should be between 1 and 3'',
:if => Proc.new {|x| x.number_of_owners =~ /\d+/}
As you can see, I''m using the :if clause to limit the inclusion
validation to cases where the field actually contains digits.
But the inclusion valiation never runs. Is this because
x.number_of_owners isn''t set yet at the time the :if is evaluated? How
can I defer the inclusion validation until I know that the numericality
has been satisfied?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~--...
2015 Jun 22
2
Small issue with DNSSEC / SSHFP
Hi,
I found a small issue with DNSSEC validation of SSHFP lookups. (For reference
I used OpenSSH 6.8p1 on FreeBSD 10.1).
The issues is that when DNSSEC valiation fails, ssh displays a confusing
message to the user. When DNSSEC validation of a SSHFP record fails, ssh
presents the user with
"Matching host key fingerprint found in DNS.
"Are you sure you want to continue connecting (yes/no)?
(For example
$ ./ssh -o 'VerifyHostKeyDNS True' fx...
2013 Dec 04
3
BIND segway -> python -> first-class ports
On 12/4/13, 9:05 AM, Mark Felder said:
-----------------
> There was no alternative; we couldn't keep BIND in base. BIND 9 will
> certainly have a EoL before the EoL of FreeBSD 10.x, and we can't use
> BIND 10 because it requires importing Python to base.
I'm coming more and more to the conclusion that we should have a minimal Python in "base".
More and more people