Rails FasterCSV “unquoted fields do not allow \r or \n”

后端 未结 3 1146
终归单人心
终归单人心 2020-12-18 07:55

I\'m having an issue with FasterCSV and my rake db:seeds migration. I get the error: \"rake aborted! Unquoted fields do not allow \\r or \\n (line 2)\" on the following se

3条回答
  •  心在旅途
    2020-12-18 08:22

    It was as simple as clearing all the formatting off in the csv. Excel seems to have a habit of retaining a lot of the formatting after saving in a csv file, which was causing the failure. After I copied and pasted all the data with no formatting in a new csv file, it was fine.

提交回复
热议问题