I am currently having a problem when I export some data and create CSV in rails3. In my controller, I add the following at the top.
require 'CSV'
Then I have my method that generates a CSV file. In development, I can generate and download the csv file just fine, but in production mode, the passenger returns me the following error.
No such file to load
interestingly, anyone had this problem, because I thought that the CSV library is included in ruby 1.9.2, I do not use any stones to create the CSV file.
source
share