I'm converting multiple html.slim files to html.erb. After following plenty of brilliant advice and tips on stack overflow, I'm pretty much done, but I'm not happy with the html.erb code that is generated. I understand that it's not going to be perfect, but I'm getting an additional Temple::Utils.escape_html((...))
around my links, as in:
<%= ::Temple::Utils.escape_html((link_to "Jobs", jobs_path)) %>
I finally came across Dimitry_N's (Stack Overflow) answer here, but even when I pass the --rails
flag as he suggests, I still get the superfluous code.
I've come across one or two Regex options to delete the additional code after file is created, but I'm hoping to find something that expands on Dimitry's answer so that they're not inserted in the first place.
Has anyone experienced this or know of a solution?