From 585e75696b31395aee895e5366e331c07c3f5ee1 Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Tue, 23 Sep 2014 02:06:08 +0900 Subject: Revert "Merge pull request #16888 from jejacks0n/render_template" This reverts commit 07635a74b5ee08dcba3f6617def6230d8f114fe5, reversing changes made to 1b5f61a025b6ce1ee52b7148e3ed2a9acbde28b9. Reason: it's not ready :bomb:, see https://github.com/rails/rails/pull/16888#issuecomment-56400816 --- guides/source/4_2_release_notes.md | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'guides') diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md index 0e0307de66..c59affea8f 100644 --- a/guides/source/4_2_release_notes.md +++ b/guides/source/4_2_release_notes.md @@ -149,13 +149,6 @@ individual components for new deprecations in this release. The following changes may require immediate action upon upgrade. -### `render` with a String argument - -Previously, calling `render "foo/bar"` in a controller action is equivalent to -`render file: "foo/bar"`. In Rails 4.2, this has been changed to mean `render template: "foo/bar"` -instead. If you need to render a file, please change your code to use the -explicit form (`render file: "foo/bar"`) instead. - ### `respond_with` / class-level `respond_to` `respond_with` and the corresponding class-level `respond_to` have been moved to @@ -506,10 +499,6 @@ Please refer to the [Changelog][action-view] for detailed changes. ### Notable changes -* `render "foo/bar"` now expands to `render template: "foo/bar"` instead of - `render file: "foo/bar"`. - ([Pull Request](https://github.com/rails/rails/pull/16888)) - * Introduced a `#{partial_name}_iteration` special local variable for use with partials that are rendered with a collection. It provides access to the current state of the iteration via the `#index`, `#size`, `#first?` and -- cgit v1.2.3