Replace all img HTML tags with image_tag Rails ERB helpers with a regular expression
To convert multiple <img> tags in a single HTML file such as <img src =”hello.jpg” alt = “hello” /> to Ruby on Rails ERB helpers in your .html.erb file like this: <%= image_tag(“hello.jpg”) %>