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”) %>
You can use TextMate’s Find and Replace with the following regular expression: