我有一个在 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(工作)
除此之外所有的gem都是相同的版本。