Ruby on rails Rails 3.0.5中没有不推荐的\u块\u帮助程序
当我尝试在Rails 3.0.5上启动我的生产服务器时,我不断遇到以下错误:Ruby on rails Rails 3.0.5中没有不推荐的\u块\u帮助程序,ruby-on-rails,ruby,ruby-on-rails-3,production-environment,Ruby On Rails,Ruby,Ruby On Rails 3,Production Environment,当我尝试在Rails 3.0.5上启动我的生产服务器时,我不断遇到以下错误: /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- action_view/helpers/deprecated_block_helpers (LoadError) from /var/li
/var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:70:in `const_get': no such file to load -- action_view/helpers/deprecated_block_helpers (LoadError)
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:70:in `each'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:68:in `each'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:100:in `new_constants'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:91:in `each'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:91:in `new_constants'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:599:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in `load_dependency'
from /var/lib/gems/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
from /home/punkweek/punkweek/config.ru:3
from /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
from /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
from /home/punkweek/punkweek/config.ru:1:in `new'
from /home/punkweek/punkweek/config.ru:1
似乎Rails中找不到的文件(不推荐使用的\u block\u helpers)有问题。有人知道如何解决这个问题吗?实际上,这是Rails 3.0.5中的一个bug(它已在edge中修复) DeprecatedBlockHelpers在ActionView::Helpers中自动加载,但文件本身已在中删除 此帮助程序旨在显示对某些块使用
而不是
(或在haml中使用-
而不是=
)的弃用通知。我不确定这个弃用是针对哪个块的,但也许可以浏览一下你的模板,看看你是否可以试着把它弄错
或者,您可以购买Rails并删除弃用的自动加载的BlockHelpers或track edge Rails。我将尝试更正所有可能导致弃用的代码。