"Could not concatenate to the buffer because it is not html safe"在水豚的rspec测试期间



最近我看到使用Rails3的测试间歇性失败,并出现以下错误:

Failure/Error: visit some_path
ActionView::Template::Error:
  Could not concatenate to the buffer because it is not html safe.

故障似乎是不确定的。

有人能说明是什么原因造成的吗?

some_path上的视图文件有一个字段,该字段返回的字段使用<%= %>而不是<%=h %>

最新更新