From c2a87b5c17c96ce0e232a63ad8f7fb241e1747fc Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Tue, 12 Dec 2023 05:58:00 +1100 Subject: [PATCH] Fix typo in UPGRADING.md (#167) --- UPGRADING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 8f5b1c1..2609807 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -253,8 +253,8 @@ Rails.application.assets.load_path.find('logo.svg').content As Rails escapes html tags in views by default, in order to output a rendered svg you will need to specify rails not to escape the string using [html_safe](https://api.rubyonrails.org/classes/String.html#method-i-html_safe) or [raw](https://api.rubyonrails.org/classes/ActionView/Helpers/OutputSafetyHelper.html#method-i-raw). ```ruby -Rails.application.assets.load_path.find('logo.svg').html_safe -raw Rails.application.assets.load_path.find('logo.svg') +Rails.application.assets.load_path.find('logo.svg').content.html_safe +raw Rails.application.assets.load_path.find('logo.svg').content ``` **Precompilation in development**