diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2016-05-09 19:31:27 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2016-05-09 19:31:27 -0300 |
commit | f338bb5b50314870f8ba3bb79207c6ace2e9e61e (patch) | |
tree | 1729f5ceb3a65425b617dd99fcd76ae7a5931e1b /actionview | |
parent | d7e4083437a94e22389499076b87dd9110302861 (diff) | |
parent | c609bb619dd2c6ece85cc4d5d008e57672f80c15 (diff) | |
download | rails-f338bb5b50314870f8ba3bb79207c6ace2e9e61e.tar.gz rails-f338bb5b50314870f8ba3bb79207c6ace2e9e61e.tar.bz2 rails-f338bb5b50314870f8ba3bb79207c6ace2e9e61e.zip |
Merge pull request #24929 from rosenfeld/patch-6
Improve AV changelog with regards to default RAW handler
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/CHANGELOG.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index e610f77f1e..7e271a693a 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -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* |