aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-09-26 00:07:07 +0900
committerGodfrey Chan <godfreykfc@gmail.com>2014-09-26 01:42:18 +0900
commitb5571b3ccfbbfae7fea49c7934bb0348acceeeb4 (patch)
treedab869b1fef21206a34ebe364e7e9ba6fc6b52de /guides
parentb008e4bd8a77e37e22af71dd7ec31fe17abf12e2 (diff)
downloadrails-b5571b3ccfbbfae7fea49c7934bb0348acceeeb4.tar.gz
rails-b5571b3ccfbbfae7fea49c7934bb0348acceeeb4.tar.bz2
rails-b5571b3ccfbbfae7fea49c7934bb0348acceeeb4.zip
Revert "Revert "Merge pull request #16888 from jejacks0n/render_template""
This reverts commit 585e75696b31395aee895e5366e331c07c3f5ee1.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/4_2_release_notes.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md
index bc8c306afc..2b8a6eb622 100644
--- a/guides/source/4_2_release_notes.md
+++ b/guides/source/4_2_release_notes.md
@@ -149,6 +149,13 @@ 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
@@ -499,6 +506,10 @@ 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