15 Mar 2009, 15:44
Generic-user-small

Pierre Lasante (2 posts)

Hi,

I tried to run the following command:

ruby affinity-trip.rb –csv

But it gives the following error:

C:\scriting-book\affinity-trip>ruby affinity-trip.rb –csv “Want it delivered Tuesday, March 17?”,”” affinity-trip.rb:118:in scrape_affinity_list': private method scan’ called for nil:NilClass (NoMethodError) from affinity-trip.rb:40:in trip' from affinity-trip.rb:34:in times’ from affinity-trip.rb:34:in `trip’ from affinity-trip.rb:153

If somebody already got the same error and got a fix for it I’d highly appreciate if you could pass me the information.

Thanks.

Pierre

15 Mar 2009, 18:07
Generic-user-small

Pierre Lasante (2 posts)

I’m replying to myself to say that the ‘scan’ method works in irb. So I wonder if my ruby version ‘1.8.6’ has got anything to do with this error.

06 Oct 2012, 09:45
Generic-user-small

d3vin h (4 posts)

bump

  You must be logged in to comment