I am using active storage with rails 5.2.4, my attached file is named photo, I want to render "default.jpg" if the loading of the image failed (for example the image got delete from the storage), thanks
<%= image_tag'batman.png', alt: 'hello', :onerror => "this.src='hulk.png'" %>