I saw this recently, thought it was interesting. But I don\'t really understand what it does?
Ex. I have a rails app and I want to bootstrap some json, so that I d
<%==
is equivalent to raw
.
From the Ruby on Rails Guide:
To insert something verbatim use the
raw
helper rather than callinghtml_safe
:<%= raw @cms.current_template %> <%# inserts @cms.current_template as is %>
or, equivalently, use
<%==
:<%== @cms.current_template %> <%# inserts @cms.current_template as is %>