提交 c609bb61 编写于 作者: R Rodrigo Rosenfeld Rosas

Improve AV changelog with regards to default RAW handler

It highlights which kind of incompatibilities this could lead to when rendering plain JS or HTML partials.
上级 a0b3de30
......@@ -292,7 +292,24 @@
* Change the default template handler from `ERB` to `Raw`.
Files without a template handler in their extension will be rendered using the raw
handler instead of ERB.
handler instead of ERB. The raw handler does not flag the rendered text as html safe,
so if your application rendered plain JS or HTML files before, you'll have to replace:
```erb
<%= render '/common/analytics.js' %>
```
with either
```erb
<%= raw render '/common/analytics.js' %>
```
or
```erb
<%= render('/common/analytics.js').html_safe %>
```
*Rafael Mendonça França*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册