0

當我嘗試啓動on Rails的3.0.5我的生產服務器,我不斷收到此錯誤:Rails中沒有deprecated_block_helpers 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/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 

似乎有一個問題與文件,deprecated_block_helpers,這在Rails中找不到。任何人都知道如何解決這個問題?

回答

1

其實這是Rails 3.0.5中的一個錯誤(它已被固定在邊緣)。

DeprecatedBlockHelpers被自動加載在::的ActionView助手,但文件本身9de8305

這個助手輾轉旨在顯示取消通知(以HAML或-代替=)使用<% %>,而不是<%= %>爲某些塊。我不確定究竟哪些區塊是棄用的,但也可以查看您的模板,看看您是否可以嘗試將此功能投入使用。

或者,您可以供應商Rails並刪除DeprecatedBlockHelpers自動加載,或跟蹤邊緣Rails。

+0

我會嘗試糾正所有可能導致棄用的代碼。 – 2011-03-26 23:50:21