Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

documents <%== in the AS guide

  • Loading branch information...
commit 28a0ee0f0c5c5fd902d71a87794d4a111a160c38 1 parent 3565a2a
@fxn fxn authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/guides/source/active_support_core_extensions.textile
View
6 railties/guides/source/active_support_core_extensions.textile
@@ -1216,6 +1216,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>
Please sign in to comment.
Something went wrong with that request. Please try again.