Displaying 4 results from an estimated 4 matches for "valid_d".
Did you mean:
valid_id
2004 Apr 23
4
is.na(valid_date) too often true on SGI MIPS (PR#6814)
Full_Name: George N. White III
Version: 1.9.0
OS: Irix 6.5.21m
Submission from: (NULL) (142.176.61.212)
R-1.9.0 built using the SGI MIPSPro compilers
Installation directory: /usr/local
C compiler: c99 -OPT:IEEE_NaN_inf=ON -mips4 -n32 -O3
-OPT:Olimit_opt=on
C++ compiler: CC -OPT:IEEE_NaN_inf=ON -mips4 -n32 -O3
-OPT:Olimit_opt=on -LANG:std
Fortran compiler:
2005 Dec 02
1
undefined local variable or method `errors' for Listing:Clas
I have a listing model in which I''m trying to validate a date (2005, 2,
29 - is not a valid date).
def self.validate_date(year, month, day)
unless Date::valid_date?(year.to_i, month.to_i, day.to_i)
errors.add(:start_date, "De startdatum moet geldige datum zijn.")
end
end
But everytime I call this code I get:
undefined local variable or method `errors'' for Listing:Class
Looking on the internet and in the Rails book errors.a...
2005 Mar 02
9
date validation
I''m hoping someone can help me (a Rails newbie) with this. Basically, I
need to verify that a date created with "date_select" is valid *before*
it''s sent off to the database for acceptance (as a valid date) or
rejection (as an invalid date). Given how easy the majority of validation
are in Rails, I''ve got to believe there''s a fairly simple way
2006 Jan 05
13
Date Validation
Hi,
How can I validate date in model class
Thanks.
Sainaba.
--
Posted via http://www.ruby-forum.com/.