1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

documents <%== in the AS guide

This commit is contained in:
Xavier Noria 2010-11-21 10:17:30 +01:00
parent 7c51d1fcf9
commit 15fd29b3ea

View file

@ -1189,6 +1189,12 @@ To insert something verbatim use the +raw+ helper rather than calling +html_safe
<%= raw @cms.current_template %> <%# inserts @cms.current_template as is %>
</erb>
or, equivalently, use <tt><%==</tt>:
<erb>
<%== @cms.current_template %> <%# inserts @cms.current_template as is %>
</erb>
The +raw+ helper calls +html_safe+ for you:
<ruby>