开发者

CSV not working for Rails 3 in Production using passenger

I currently have a problem where i am exporting some data and generating a CSV in rails3. In my controller i add the following at the top.

require 'CSV'

I then have my method that generates the CSV file. In development i am able to generate and download the cs开发者_如何学Gov file just fine but in production mode, passenger returns me the following error.

No such file to load -- CSV

wondering if anyone has had this issue because i thought the CSV library included in ruby 1.9.2, i am not using any gems for creating a CSV file.


I think it is csv instead of CSV:

require 'csv'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜