[英]rvm ruby 1.9.2 and Rails 3.1 can't start server
Im using rvm use 1.9.2
then when trying to run rails s
I'm getting the following error.我使用
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)
Check your config/environments/development.rb
file, you probably have this line:检查你的
config/environments/development.rb
文件,你可能有这一行:
config.action_view.debug_rjs = true
Remove it.去掉它。 Probably best to search your entire project for any
debug_rjs
references and remove them all.最好在整个项目中搜索任何
debug_rjs
引用并将它们全部删除。
That method is used to wrap RJS responses in a try/catch block.该方法用于将 RJS 响应包装在 try/catch 块中。 It was removed in this commit to the Rails source.
它在此提交到 Rails 源代码中被删除。 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 .
当它尝试使用此方法从应用程序设置配置时,您现在似乎从 action_view 收到错误。
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
它应该在
config/environments/development.rb
的开发配置中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.