Rake 和未初始化的常量 [英] Rake and Uninitialized Constants

查看:51
本文介绍了Rake 和未初始化的常量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了好几天时间试图解决这个问题.

I have spent hours upon days trying to resolve this.

Rake 抛出以下错误:

dcarpenter$ rake

    rake aborted!
    uninitialized constant ActionView::Helpers::JavaScriptProxy

我似乎无法在 Google、本网站或其他地方找到遇到此问题的任何人.我应该采取什么步骤来解决这个问题,我需要知道什么?

rake --trace 产量:

rake --trace yields:

/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing'
/Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:231:in `<module:Helpers>'
/Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:2:in `<module:ActionView>'
/Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:1:in `<top (required)>'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:68:in `require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:66:in `each'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:66:in `block in require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:55:in `each'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:55:in `require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler.rb:120:in `require'
/Users/dcarpenter/Dropbox/workspace/BlueFusion/config/application.rb:9:in `<top (required)>'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/dcarpenter/Dropbox/workspace/BlueFusion/Rakefile:4:in `<top (required)>'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:78:in `block in load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:77:in `load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:61:in `block in run'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/bin/rake:19:in `load'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/bin/rake:19:in `<main>'

宝石列表产量:

abstract (1.0.0)
actionmailer (3.1.0.rc5, 3.0.9)
actionpack (3.1.0.rc5, 3.0.9)
activemodel (3.1.0.rc5, 3.0.9)
activerecord (3.1.0.rc5, 3.0.9)
activeresource (3.1.0.rc5, 3.0.9)
activesupport (3.1.0.rc5, 3.0.9)
addressable (2.2.6)
arel (2.1.4, 2.0.10)
barby (0.4.3)
bcrypt-ruby (2.1.4)
builder (3.0.0, 2.1.2)
bundler (1.0.17)
chunky_png (1.2.1)
compass (0.11.5)
erubis (2.7.0, 2.6.6)
faraday (0.7.4)
faraday_middleware (0.7.0)
fssm (0.2.7)
hashie (1.0.0)
hike (1.2.0)
i18n (0.6.0, 0.5.0)
jrails (0.6.0)
json (1.5.3)
jwt (0.1.3)
koala (1.1.0)
linkedin (0.3.1)
mail (2.3.0, 2.2.19)
mime-types (1.16)
multi_json (1.0.3)
multi_xml (0.2.2)
multipart-post (1.1.3)
mysql2 (0.2.11)
oauth (0.4.5)
polyglot (0.3.2)
pr_geohash (1.0.0)
rack (1.3.2, 1.2.3)
rack-cache (1.0.2)
rack-mount (0.8.2, 0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.1.0.rc5)
railties (3.1.0.rc5)
rake (0.9.2, 0.8.7)
rdoc (3.9.2)
sass (3.1.7)
simple_oauth (0.1.5)
sprockets (2.0.0.beta.13)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.10)
twilio-ruby (3.3.0)
twitter (1.6.1)
tzinfo (0.3.29)

推荐答案

顺便说一句,jrails 不兼容 Rails 3,项目从 2009 年就基本死了.如果你在 Rails 3 上,你应该使用jquery-ujs gem 填补了 jrails 过去常常进入的漏洞.

Just for the sake of saying, jrails is not complatible with Rails 3 and the project is basically dead since 2009. If you are on Rails 3 you should use the jquery-ujs gem that kind of fills in the hole jrails used to get into.

这并不意味着它就可以正常工作,而是您真正想要使用 Rails 3 的第一步.

This does not mean it's just going to work, but it's the first step of you really want to move on to Rails 3.

这篇关于Rake 和未初始化的常量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆