ruby on rails 错误!

我是个rails新手,并不知道什么,这是别人的一个程序,我要添加一些功能,可是我根本无法正常运行它.谁能帮我看看,我应该怎么办?[error]D:/Ruby/lib/ru... 我是个rails新手, 并不知道什么, 这是别人的一个程序, 我要添加一些功能, 可是我根本无法正常运行它. 谁能帮我看看, 我应该怎么办?
[error]
D:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependenci
es.rb:105:in `const_missing': uninitialized constant CGI::Session (NameError)
from F:/luopancms/config/environment.rb:56
from D:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from D:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from D:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_suppo
rt/dependencies.rb:156:in `require'
from D:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_suppo
rt/dependencies.rb:521:in `new_constants_in'
from D:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_suppo
rt/dependencies.rb:156:in `require'
from D:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:8
4
from D:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from D:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from script/server:3
展开
 我来答
好好加加油
2010-08-14 · TA获得超过132个赞
知道答主
回答量:155
采纳率:0%
帮助的人:106万
展开全部
Hi there, you should rename the reference CGI::Session to ActionController::Session in your environment.rb. This was changed with the upgrade to Rails 2.3.

到environment.rb 改一下 试试哈
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式