documents <%== in the AS guide

This commit is contained in:
Xavier Noria 2010-11-21 10:17:30 +01:00
parent 7c51d1fcf9
commit 15fd29b3ea
1 changed files with 6 additions and 0 deletions

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>