Here the error:
88:in ‘contenu’: undefined method ‘text’ for nil:NilClass
(NoMethodError)from 95:in ‘’
My question: why the price-line(prix) work differently of the two others
before her?
She works fine if i put a number, and don’t work with the “nb” whithout
.to_i.
This may be a link with the character € (it’s for that the -2 at line
90, because it show “?” instead).
If you are french, i am too, et mon anglais n’est pas assez avancé pour
tout comprendre en cette langue.
D:/Documents and
Settings/Administrator/Desktop/jpe/JPE-Complet/JPE-C.rb:92:
in inspect': wrong number of arguments(1 for 0) (ArgumentError) from D:/Documents and Settings/Administrator/Desktop/jpe/JPE-Complet/JPE-C.rb:92:incontenu’
from D:/Documents and
Settings/Administrator/Desktop/jpe/JPE-Complet/JPE-C.rb:100:in `’
Line 92 is the new line 88 (i have update my prog).
The line 100 is the “contenu(y)”.
it should print the object
from your code you should see an array of at least 4 items, since you
are
trying to grab the fourth
If it is printing a list of less then 4 items, or is nil, thats the
cause
of the error
the job then is to figure out why your input is not as you expect