I am trying to use FasterCSV and am getting an error.
I installed the fastercsv gem and it appeared to install correctly.
This is the error that I’m getting:
…/fastercsv.rb:3: uninitialized constant FasterCSV (NameError)
gem_original_require' from C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
Here’s the code:
FasterCSV.foreach(“data.csv”) do |person|
It seems pretty simple – it’s just some code that I got out of a book
– so I’m surprised that I’m getting that error. It seems to me that
the error might indicate that the gem didn’t actually install properly.
If anyone has any insight into this, I’d appreciate it.