Last Updated: October 11, 2022
·
1.463K
· kevin

How to display action text when content contains the broken image

Use this to avoid the "asset not found" error from sprocket:
@object.content.to_trix_html.html_safe
reference: https://api.rubyonrails.org/classes/ActionText/RichText.html