Hello Friends, We often use csv upload feature in our rails applications. If you have converted a xls
or xlsx
file to csv, it might be possible that csv
file contains \r\n
in it. If you are using rubygem roo
, it will raise an exception while parsing csv. To import data from csv you have to modify that csv file. Here is an example of that
Replace file content and remove \r\n
Thanks