Hi…
I’ve a problem with this :
def fir_tahiti
@notams=Array.new
Notam.find_all_notams().each do |notam|
@notams.push(notam) if (to_secs(notam.debut)<Time.now.to_i and
to_secs(notam.fin)>Time.now.to_i)
end
end
def to_secs(str = nil)
Time.gm(2000+str[0..1].to_i, str[2..3].to_i, str[4..5].to_i,
str[6..7].to_i, str[8..9].to_i).to_i if str
end
It tells me : “ArgumentError in ListController#fir_tahiti - argument out
of range”.
I already spend hours on this and i can’t find a solution…
Plz help me !!!