aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-11-21 10:17:30 +0100
committerXavier Noria <fxn@hashref.com>2010-11-21 10:17:30 +0100
commit15fd29b3eaf9e2e202542fcf9a582b0180fc2664 (patch)
tree8110102b249c40918dcda67242aa4f9725c1ee35
parent7c51d1fcf9dc504c2dfd6e7184bbe8186f09819d (diff)
downloadrails-15fd29b3eaf9e2e202542fcf9a582b0180fc2664.tar.gz
rails-15fd29b3eaf9e2e202542fcf9a582b0180fc2664.tar.bz2
rails-15fd29b3eaf9e2e202542fcf9a582b0180fc2664.zip
documents <%== in the AS guide
-rw-r--r--railties/guides/source/active_support_core_extensions.textile6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index d41d8b6c3d..7333a81cf9 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/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>