Rails从2.3.4升级到2.3.15给出了ActionView :: TemplateError

时间:2013-02-04 11:31:40

标签: ruby-on-rails

我有一个在Ruby [1.8.7]和Rails 2.3.4上运行的应用程序,现在正在升级到Rails 2.3.15(及其依赖项)。它开始在“生产”环境中抛出此错误

ActionView::TemplateError (mass_update_mygroups_url failed to generate from {:action=>"show", :my_group_name=>"Production", :id=>"show", :controller=>"admin/mygroups"}, expected: {:action=>"mass_update", :controller=>"admin/mygroups"}, diff: {:action=>"mass_update", :my_group_name=>"Production", :id=>"show"}) on line #64 of app/views/admin/mygroups/show.html.erb:
61: </div>
62: 
63: <div class="table-wrap">
64: <% form_remote_tag  :url =>mass_update_mygroups_path(@data,params.except(:mass_update,:service_profile,:app_details)), :loading=>"document.getElementById('lightboxs').style.display='inline';",:complete=>"constructCollapsableFieldsets();document.getElementById('lightboxs').style.display='none';", :html=>{:id=>"m_update", :name=>"m_update"} do %>
65: <fieldset id="f2" name="f1" style="border: 1px solid #ccc;" collapsed="true">
66: <legend style="margin-left: 20px; padding: 2px 10px 4px 5px; line-height:0px;" align="left">Mass Update</legend>
67: <div class="form-wrap">

    (eval):21:in `mass_update_mygroups_path'
    app/views/admin/mygroups/show.html.erb:64
    passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
    passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
    passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
    passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
    passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

如果我删除Rails 2.3.15并切换回2.3.4一切正常。  更重要的是,事情在其他盒子上工作得很好,这种升级不会产生任何问题,所有页面即使在生产环境中也能正常工作。
 这两个盒子的差异是一个是centOS 5.4(不工作)和centOS 6.3(工作)
 除此之外,所有的宝石都是相同的版本。

1 个答案:

答案 0 :(得分:0)

通过将乘客版本也解决为2.2.16来解决这个问题可能已经很晚了。