开发者

rvm ruby 1.9.2 and Rails 3.1 can't start server

开发者 https://www.devze.com 2023-03-27 12:28 出处:网络
Im using rvm use 1.9.2 then when trying to run rails s I\'m getting the following error. /Users/pel/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.rc5/lib/action_view/railtie.rb:34:in `block (3 leve

Im using rvm use 1.9.2 then when trying to run rails s I'm getting the following error.

/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 `d开发者_开发知识库ebug_rjs=' for ActionView::Base:Class (NoMethodError)


Check your config/environments/development.rb file, you probably have this line:

config.action_view.debug_rjs = true

Remove it. Probably best to search your entire project for any debug_rjs references and remove them all.


That method is used to wrap RJS responses in a try/catch block. It was removed in this commit to the Rails source. And it seems as if you are now getting an error from action_view when it trys to set the configuration from the application with this method.

Check your application configuration and remove any line that looks like this:

config.action_view.debug_rjs = true

It should be in your development config at config/environments/development.rb

0

精彩评论

暂无评论...
验证码 换一张
取 消