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:
parent
7c51d1fcf9
commit
15fd29b3ea
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue