diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-23 00:48:06 +0900 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-23 00:48:06 +0900 |
commit | b04ac976d9078e8012dd45887afebc950dc053fd (patch) | |
tree | 71e1d4c33da7f08afa1f219a829460c2cb5b0824 /guides | |
parent | 07635a74b5ee08dcba3f6617def6230d8f114fe5 (diff) | |
download | rails-b04ac976d9078e8012dd45887afebc950dc053fd.tar.gz rails-b04ac976d9078e8012dd45887afebc950dc053fd.tar.bz2 rails-b04ac976d9078e8012dd45887afebc950dc053fd.zip |
CHANGELOG for 07635a7
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/4_2_release_notes.md | 11 |
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 c59affea8f..0e0307de66 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 |