我们在我们的应用程序中使用haml 5.2.2 + Ruby 3.2 + Rails 7 + haml-rails 2.1。
当我升级到haml 6.1.1时,我的rails视图开始失败,出现以下异常:
ActionView::Template::Error (undefined method `safe_concat' for {:add_to_stack=>true}:Hash)
堆栈跟踪指向首先呈现的任何部分中的第一行。
我试着捕捉ActionView::Template::错误并检查回溯,看到类似这样的东西:
/Users/me/project_directory/app/views/admin/shared/_index_header.haml:8:in `_app_views_admin_shared__index_header_haml___3465718130954218663_135720'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/base.rb:244:in `public_send'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/base.rb:244:in `_run'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/template.rb:157:in `block in render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:208:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/template.rb:361:in `instrument_render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/template.rb:155:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-1.0.2/lib/mini_profiler/profiling_methods.rb:104:in `block in profile_method'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/partial_renderer.rb:251:in `block in render_partial_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:208:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/partial_renderer.rb:246:in `render_partial_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/partial_renderer.rb:237:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/renderer.rb:53:in `render_partial'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/helpers/rendering_helper.rb:44:in `render'",
/Users/me/project_directory/app/views/admin/users/index.html.haml:1:in `_app_views_admin_users_index_html_haml___942898265407221281_135700'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/base.rb:244:in `public_send'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/base.rb:244:in `_run'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/template.rb:157:in `block in render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:208:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/template.rb:361:in `instrument_render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/template.rb:155:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-1.0.2/lib/mini_profiler/profiling_methods.rb:104:in `block in profile_method'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/template_renderer.rb:65:in `block (2 levels) in render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:208:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/template_renderer.rb:60:in `block in render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/template_renderer.rb:75:in `block in render_with_layout'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:208:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/template_renderer.rb:74:in `render_with_layout'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/template_renderer.rb:59:in `render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/template_renderer.rb:11:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/renderer/renderer.rb:29:in `render_to_object'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/rendering.rb:117:in `block in _render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/base.rb:270:in `in_rendering_context'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/rendering.rb:116:in `_render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/streaming.rb:216:in `_render_template'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/rendering.rb:103:in `render_to_body'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/rendering.rb:46:in `render_to_body'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/renderers.rb:141:in `render_to_body'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/abstract_controller/rendering.rb:25:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/rendering.rb:30:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/instrumentation.rb:22:in `block (2 levels) in render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/3.2.0/benchmark.rb:311:in `realtime'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/core_ext/benchmark.rb:14:in `ms'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/instrumentation.rb:22:in `block in render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/instrumentation.rb:91:in `cleanup_view_runtime'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activerecord-7.0.4.1/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/instrumentation.rb:21:in `render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/implicit_render.rb:35:in `default_render'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'",
<internal:me>:90:in `tap'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/abstract_controller/base.rb:215:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/rendering.rb:53:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/abstract_controller/callbacks.rb:234:in `block in process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/core_ext/time/zones.rb:66:in `use_zone'",
/Users/me/project_directory/app/controllers/application_controller.rb:28:in `default_timezone'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/callbacks.rb:127:in `block in run_callbacks'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/callbacks.rb:138:in `run_callbacks'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/abstract_controller/callbacks.rb:233:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/rescue.rb:22:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/notifications.rb:206:in `instrument'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/instrumentation.rb:66:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activerecord-7.0.4.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/abstract_controller/base.rb:151:in `process'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionview-7.0.4.1/lib/action_view/rendering.rb:39:in `process'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-1.0.2/lib/mini_profiler/profiling_methods.rb:104:in `block in profile_method'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal.rb:188:in `dispatch'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_controller/metal.rb:251:in `dispatch'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/journey/router.rb:50:in `block in serve'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/journey/router.rb:32:in `each'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/journey/router.rb:32:in `serve'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/routing/route_set.rb:852:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/static.rb:23:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/sentry-rails-4.1.7/lib/sentry/rails/rescued_exception_interceptor.rb:12:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-attack-6.6.1/lib/rack/attack.rb:127:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/warden-1.2.9/lib/warden/manager.rb:36:in `block in call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/warden-1.2.9/lib/warden/manager.rb:34:in `catch'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/warden-1.2.9/lib/warden/manager.rb:34:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/tempfile_reaper.rb:15:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/etag.rb:27:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/conditional_get.rb:27:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/head.rb:12:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/http/permissions_policy.rb:38:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/http/content_security_policy.rb:36:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/session/abstract/id.rb:266:in `context'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/session/abstract/id.rb:260:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/cookies.rb:704:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activerecord-7.0.4.1/lib/active_record/migration.rb:603:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/callbacks.rb:99:in `run_callbacks'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/executor.rb:14:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/web-console-4.2.0/lib/web_console/middleware.rb:132:in `call_app'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/web-console-4.2.0/lib/web_console/middleware.rb:28:in `block in call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/web-console-4.2.0/lib/web_console/middleware.rb:17:in `catch'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/web-console-4.2.0/lib/web_console/middleware.rb:17:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/lograge-0.11.2/lib/lograge/rails_ext/rack/logger.rb:15:in `call_app'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.1/lib/rails/rack/logger.rb:25:in `block in call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/tagged_logging.rb:99:in `block in tagged'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/tagged_logging.rb:37:in `tagged'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.1/lib/active_support/tagged_logging.rb:99:in `tagged'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.1/lib/rails/rack/logger.rb:25:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/request_store-1.5.0/lib/request_store/middleware.rb:19:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/request_id.rb:26:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/method_override.rb:24:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/runtime.rb:22:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/executor.rb:14:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/static.rb:23:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-2.2.6.4/lib/rack/sendfile.rb:110:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/actionpack-7.0.4.1/lib/action_dispatch/middleware/host_authorization.rb:137:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/sentry-ruby-core-4.1.5/lib/sentry/rack/capture_exceptions.rb:29:in `block in call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/sentry-ruby-core-4.1.5/lib/sentry/hub.rb:52:in `with_scope'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/sentry-ruby-core-4.1.5/lib/sentry-ruby.rb:149:in `with_scope'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/sentry-ruby-core-4.1.5/lib/sentry/rack/capture_exceptions.rb:14:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:100:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-1.0.2/lib/mini_profiler/profiler.rb:281:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/webpacker-5.4.0/lib/webpacker/dev_server_proxy.rb:25:in `perform_request'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-proxy-0.6.5/lib/rack/proxy.rb:57:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.1/lib/rails/engine.rb:530:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/puma-5.6.4/lib/puma/configuration.rb:252:in `call'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/puma-5.6.4/lib/puma/request.rb:77:in `block in handle_request'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/puma-5.6.4/lib/puma/thread_pool.rb:340:in `with_force_shutdown'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/puma-5.6.4/lib/puma/request.rb:76:in `handle_request'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/puma-5.6.4/lib/puma/server.rb:441:in `process_client'",
/Users/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/puma-5.6.4/lib/puma/thread_pool.rb:147:in `block in spawn_thread'"
据我所知,这些文件中没有一个包含对safe_concat
方法的调用。这个错误来自哪里?我如何解决它?
1条答案
按热度按时间c7rzv4ha1#
这取决于你的rails应用程序和你使用的gem。
在我的例子中,问题来自安装在
development
上的gemxray-rails
。我删除这个gem然后rails应用程序工作。
你应该检查一下宝石的撞击