CSV not working for Rails 3 in passenger production

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 -- CSV

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.

+3
source share
1 answer

I think this is csv instead of CSV :

require 'csv'
+15
source

All Articles