我在尝试加载应用程序时收到以下错误:
ActionView::Template::Error at /
uninitialized constant ActionView::CompiledTemplates::EXPR_ARG
在app/views/layouts/application.html.haml
处发现错误,并突出显示以下代码。
!!! 5
%html{:lang => "en"}
%head
= render partial: 'common/html_head'
%body#static{ class: body_css_class }
= content_for?(:base_content) ? yield(:base_content) : yield
有人知道这是什么吗?
这是haml
gem 版本5.0.1 - 5.0.4
中的一个已知错误。
您需要将 gem 版本更新为5.0.4
。
源