Skip to content

Commit

Permalink
Merge pull request rails#24929 from rosenfeld/patch-6
Browse files Browse the repository at this point in the history
Improve AV changelog with regards to default RAW handler
  • Loading branch information
spastorino committed May 9, 2016
2 parents d7e4083 + c609bb6 commit f338bb5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion actionview/CHANGELOG.md
Expand Up @@ -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*

Expand Down

0 comments on commit f338bb5

Please sign in to comment.