Not sure the title is clear enough, but let’s say I have the following block
<% if preface.nil? || preface.empty? %>
<p><%= preface %></p>
<%end%>
Instead of keep opening and closing the ruby tags, I’d like to echoing the HTML code thus making the code more readable.
So I’d like something like
<% if preface.nil? || preface.empty?
print preface
end%>
However, both print and put return the result in the console, whereas the concat that I read to be useful it doesn’t work. Any help, please?