Permalink
Browse files

documents <%== in the AS guide

  • Loading branch information...
1 parent 3565a2a commit 28a0ee0f0c5c5fd902d71a87794d4a111a160c38 @fxn fxn committed Nov 21, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 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>

0 comments on commit 28a0ee0

Please sign in to comment.