From 37bd0770222df2a8c5ac01ce7fa1fb0f925f01d8 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sat, 20 Feb 2016 14:40:18 +0530 Subject: Improve CHANGELOG for https://github.com/rails/rails/pull/17043 [ci skip] --- actionview/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/CHANGELOG.md') diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 461a26b10b..c1aeb2a61f 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,4 +1,4 @@ -* Fix `button_to`'s `:params` option support to correctly generated input names for nested hashes/arrays. +* Add support for nested hashes/arrays to `:params` option of `button_to` helper. *James Coleman* -- cgit v1.2.3 From e93f0f0f133717f9b06b1eaefd3442bd0ff43985 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sun, 21 Feb 2016 16:32:50 +0100 Subject: [ci skip] Clarify collection caching went EXPLICIT. Yo dawg, we so explicit if we were a music track, yo' iPhone's Music app would put an E next to it. *drops mic* --- actionview/CHANGELOG.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'actionview/CHANGELOG.md') diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index c1aeb2a61f..bd7ce14e04 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -197,16 +197,18 @@ *Ulisses Almeida* -* Collection rendering automatically caches and fetches multiple partials. +* Collection rendering can cache and fetch multiple partials at once. Collections rendered as: ```ruby - <%= render @notifications %> - <%= render partial: 'notifications/notification', collection: @notifications, as: :notification %> + <%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %> ``` - will now read several partials from cache at once, if the template starts with a cache call: + will read several partials from cache at once. The templates in the collection + that haven't been cached already will automatically be written to cache. Works + great alongside individual template fragment caching. For instance if the + template the collection renders is cached like: ```ruby # notifications/_notification.html.erb @@ -215,6 +217,9 @@ <% end %> ``` + Then any collection renders shares that cache when attempting to read multiple + ones at once. + *Kasper Timm Hansen* * Fixed a dependency tracker bug that caused template dependencies not -- cgit v1.2.3 From 355346c196daa446e89916df822e9d5d17605435 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Wed, 24 Feb 2016 16:20:38 +0100 Subject: [ci skip] Move collection caching changelog entry. We changed this in beta2, and only editing the original entry means people can't see that it was significantly changed. --- actionview/CHANGELOG.md | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'actionview/CHANGELOG.md') diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index bd7ce14e04..465c646ac7 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,28 @@ +* Collection rendering can cache and fetch multiple partials at once. + + Collections rendered as: + + ```ruby + <%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %> + ``` + + will read several partials from cache at once. The templates in the collection + that haven't been cached already will automatically be written to cache. Works + great alongside individual template fragment caching. For instance if the + template the collection renders is cached like: + + ```ruby + # notifications/_notification.html.erb + <% cache notification do %> + <%# ... %> + <% end %> + ``` + + Then any collection renders shares that cache when attempting to read multiple + ones at once. + + *Kasper Timm Hansen* + * Add support for nested hashes/arrays to `:params` option of `button_to` helper. *James Coleman* @@ -197,31 +222,6 @@ *Ulisses Almeida* -* Collection rendering can cache and fetch multiple partials at once. - - Collections rendered as: - - ```ruby - <%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %> - ``` - - will read several partials from cache at once. The templates in the collection - that haven't been cached already will automatically be written to cache. Works - great alongside individual template fragment caching. For instance if the - template the collection renders is cached like: - - ```ruby - # notifications/_notification.html.erb - <% cache notification do %> - <%# ... %> - <% end %> - ``` - - Then any collection renders shares that cache when attempting to read multiple - ones at once. - - *Kasper Timm Hansen* - * Fixed a dependency tracker bug that caused template dependencies not count layouts as dependencies for partials. -- cgit v1.2.3 From dbfa8fdfc29eb913fec6113a74394167aa13cdd6 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Wed, 24 Feb 2016 11:14:40 -0500 Subject: Preparing for 5.0.0.beta3 release Adds changelog headers for beta3 release --- actionview/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionview/CHANGELOG.md') diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 465c646ac7..d084f2b1e0 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,5 @@ +## Rails 5.0.0.beta3 (February 24, 2016) ## + * Collection rendering can cache and fetch multiple partials at once. Collections rendered as: -- cgit v1.2.3