diff options
author | Xavier Noria <fxn@hashref.com> | 2010-11-21 10:17:30 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-11-21 10:17:30 +0100 |
commit | 15fd29b3eaf9e2e202542fcf9a582b0180fc2664 (patch) | |
tree | 8110102b249c40918dcda67242aa4f9725c1ee35 /railties | |
parent | 7c51d1fcf9dc504c2dfd6e7184bbe8186f09819d (diff) | |
download | rails-15fd29b3eaf9e2e202542fcf9a582b0180fc2664.tar.gz rails-15fd29b3eaf9e2e202542fcf9a582b0180fc2664.tar.bz2 rails-15fd29b3eaf9e2e202542fcf9a582b0180fc2664.zip |
documents <%== in the AS guide
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 6 |
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> |