Mar*_*tin 7 ruby ruby-on-rails ruby-on-rails-3
我rvm use 1.9.2在尝试运行时使用然后rails s我收到以下错误.
/Users/pel/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.rc5/lib/action_view/railtie.rb:34:in `block (3 levels) in <class:Railtie>': undefined method `debug_rjs=' for ActionView::Base:Class (NoMethodError)
Run Code Online (Sandbox Code Playgroud)
Dyl*_*kow 23
检查你的config/environments/development.rb文件,你可能有这一行:
config.action_view.debug_rjs = true
Run Code Online (Sandbox Code Playgroud)
去掉它.可能最好搜索整个项目以获取任何debug_rjs引用并将其全部删除.