fastercsv error with ruby 1.9.2

前端 未结 2 652
后悔当初
后悔当初 2021-01-03 21:15

I have an existing rails application I\'m running on ruby 1.9.2 and linux its rails version is

rails 2.3.8

and it has a GEMFILE as well, i

相关标签:
2条回答
  • 2021-01-03 22:03

    I found the answer to my question

    Its based on this post

    What is Ruby 1.9 standard CSV library?

    and as the solution i had to

    require 'csv'
    

    instead of

    require 'fastercsv'
    

    and change the FasterCSV to CSV

    0 讨论(0)
  • 2021-01-03 22:12

    You don't need to use the FasterCSV gem with Ruby 1.9.2 as it is already included as standard library's CSV (e.g. require 'csv'). Just change references in your application from FasterCSV to CSV and remove the vendor/gems/fastercsv folder and it should Just Work(tm)

    0 讨论(0)
提交回复
热议问题