本文介绍了使用fastercsv的Rails 3服务器启动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 rails 2.3.5 应用程序升级到 Rails 3.我做了升级需要做的所有事情,当我使用

I have a rails 2.3.5 app getting upgraded to Rails 3. I did every thing I am required to do for upgrading and when I start the rails server using

rails server

它给了我这个

Please switch to Ruby 1.9's standard CSV library.  It's FasterCSV plus
support for Ruby 1.9's m17n encoding engine.

我正在使用 ruby-1.9.2-p0 并安装了 fastercsv (1.5.3) gem.在 puts 语句的帮助下,我能够找到错误发生的位置.我发现执行停止在这一行

I am using ruby-1.9.2-p0 and have fastercsv (1.5.3) gem installed. with the help of puts statements, i was able to track down where the error occurred. i found that the execution stops at this line

Bundler.require(:default, Rails.env) if defined?(Bundler)

在 application.rb 文件中.我尝试了很多东西,但都没有奏效..请帮忙..

in application.rb file. I tried many things but none worked .. please help..

推荐答案

从应用程序中的 Gemfile 中移除 fasterCSV.Bundler 试图要求 FasterCSV,因为您在 Gemfile 中指定了它.

Remove fasterCSV from your Gemfile in the application. Bundler is trying to require FasterCSV because you have it specified in the Gemfile.

这篇关于使用fastercsv的Rails 3服务器启动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 03:11