I'm looking at legacy code that has all erb interpolations with <%==
... And I've never used that before.
What is it for? What does it do differently from <%=
?
I'm looking at legacy code that has all erb interpolations with <%==
... And I've never used that before.
What is it for? What does it do differently from <%=
?
It's shorthand to output raw content.
see https://stackoverflow.com/a/5533614/2128691
<%== @content.body %>
Is exactly the same as
<%= raw @content.body %>