aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-09-13 16:29:47 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:04:13 +0200
commit240ac66705c0d9b28b422647e5c13f87a6879857 (patch)
tree69148846e873dc5c9f607e00a2e28ada61391ed9
parentdd1955755191aece3f8e22a55689250391ebc3ba (diff)
downloadrails-240ac66705c0d9b28b422647e5c13f87a6879857.tar.gz
rails-240ac66705c0d9b28b422647e5c13f87a6879857.tar.bz2
rails-240ac66705c0d9b28b422647e5c13f87a6879857.zip
Updated Action View changelog entries with more information about the changes in the API. Removed mention of mentor (at his request).
-rw-r--r--actionview/CHANGELOG.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 49de037112..42e5229715 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -10,6 +10,29 @@
`assert_select_encoded`
`assert_select_email`
+ Note:
+ The substitution values syntax in `assert_select` has changed.
+
+ `assert_select "div#?", /\d+/`
+ `assert_select "div:match('id', ?)", /\d+/`
+
+ The attribute to match should be enclosed in quotes to avoid
+ issues with Nokogiri's css selector syntax parsing.
+ It is not necessary to do so with the question mark.
+
+ *Kasper Timm Hansen*
+
+* Loofah replaces html-scanner in `sanitize_helper`
+
+ `sanitize` can now take a `Loofah::Scrubber` for powerful scrubbing.
+ [See some examples of scrubbers here](https://github.com/flavorjones/loofah#loofahscrubber)
+
+ `PermitScrubber` has been added. Set the attributes and tags you want to keep and get everything else stripped.
+
+ `TargetScrubber` has been added. Set the attributes and tags you want to have stripped and keep everything else.
+
+ The documentation for `PermitScrubber` and `TargetScrubber` explains how you can gain complete control over when and how elements should be stripped.
+
*Kasper Timm Hansen*
* Bring `cache_digest` rake tasks up-to-date with the latest API changes