Skip to content
Browse files

documents <%== in the AS guide

  • Loading branch information...
1 parent 7c51d1f commit 15fd29b3eaf9e2e202542fcf9a582b0180fc2664 @fxn fxn committed Nov 21, 2010
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
@@ -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>

0 comments on commit 15fd29b

Please sign in to comment.
Something went wrong with that request. Please try again.