问题:为什么我被抛出以下一行:
/Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/jrails-0.6.0/lib/jrails.rb:231:in `<module:Helpers>': uninitialized constant ActionView::Helpers::JavaScriptProxy (NameError)
ENV:
我已经看过了(我花了很多时间尝试自己调试):
- 根据要求提供更多信息
以下是控制台的完整输出......
dcarpenter$ rails s
/Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/jrails-0.6.0/lib/jrails.rb:231:in `<module:Helpers>': uninitialized constant ActionView::Helpers::JavaScriptProxy (NameError)
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/jrails-0.6.0/lib/jrails.rb:2:in `<module:ActionView>'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/jrails-0.6.0/lib/jrails.rb:1:in `<top (required)>'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler/runtime.rb:68:in `require'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler/runtime.rb:66:in `each'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler/runtime.rb:66:in `block in require'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler/runtime.rb:55:in `each'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler/runtime.rb:55:in `require'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.17/lib/bundler.rb:120:in `require'
from /Users/dcarpenter/Dropbox/workspace/BlueFusion/config/application.rb:9:in `<top (required)>'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0.rc5/lib/rails/commands.rb:52:in `require'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0.rc5/lib/rails/commands.rb:52:in `block in <top (required)>'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0.rc5/lib/rails/commands.rb:49:in `tap'
from /Users/dcarpenter/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0.rc5/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
dcarpenter$
答案 0 :(得分:1)
你怎么使用jRails?尝试将它从你的生活中删除,因为它不再是积极开发的,我想知道它是否可能是你问题的根源......
jQuery是最新的默认值,所以你不需要jrails ......