Displaying 2 results from an estimated 2 matches for "startdatum".
Did you mean:
startdate
2008 Dec 15
0
mixed csv and csv2
...;-read.csv(paste(Pfad,dateinamen[i],sep="")))
if(is.na(input_teil[1,1])){
file.copy(paste(Pfad,dateinamen[i],sep=""),
paste(auslagerung,dateinamen[i],sep=""))
file.remove(paste(Pfad,dateinamen[i],sep=""))
}
}
dateinamen<-list.files(Pfad)
startdatum<-data.frame(NA,nrow=1,ncol=length(dateinamen))
enddatum<-data.frame(NA,nrow=1,ncol=length(dateinamen))
beobachtungen<-data.frame(NA,nrow=1,ncol=length(dateinamen))
#Nehme Dir nun die Dateien zur Brust und schreibe Länge der Datei,
Anfangsdatum, Enddatum
for (i in 1:(length(dateinamen))...
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.add should work and
should raise an error in the view. Anybody any ideas?
Kind regards...