Add inline_svg gem Extract the <svg> element that served as our <dialog> element’s “Close modal” button. Store the .svg file in app/assets/images/icons, making it available to the inline_svg_tag-provided helper.