aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorArtiom Di <kron82@gmail.com>2012-07-11 16:36:41 +0300
committerArtiom Di <kron82@gmail.com>2012-08-07 12:37:56 +0300
commite82ffeaa0a7a8fe8ba94dc0736c15d05b5746abc (patch)
treeb2f67b3e376d0cd0d9c0d7f376f29e195a9e5b1a /actionpack/CHANGELOG.md
parent9cd1f697f1b4dded0f18e13c7ae12c7bd2dab1c0 (diff)
downloadrails-e82ffeaa0a7a8fe8ba94dc0736c15d05b5746abc.tar.gz
rails-e82ffeaa0a7a8fe8ba94dc0736c15d05b5746abc.tar.bz2
rails-e82ffeaa0a7a8fe8ba94dc0736c15d05b5746abc.zip
Restoring the '%' trim mode for ERb templates, allowing for a leading percent sign on a line to indicate non-inserted Ruby code.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r--actionpack/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 236768227c..45940e722f 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,5 +1,17 @@
## Rails 4.0.0 (unreleased) ##
+* Restored support for the "%" ERb/Erubis _trim mode_. This can be activated with:
+
+ config.action_view.erb_trim_mode = "%" # or "%-" whitespace trim
+
+ With that mode active, you can use a single percent sign at the beginning of a line to engage Ruby mode (without inserting results). It allows for template code like this:
+
+ % if current_user.try(:admin?)
+ <%= render "edit_links" %>
+ % end
+
+ *James Edward Gray II*
+
* `javascript_include_tag :all` will now not include `application.js` if the file does not exists. *Prem Sichanugrist*
* Send an empty response body when call `head` with status between 100 and 199, 204, 205 or 304.