From 1faf222b934d61844d8b8bd4f40e1ef1d2b49433 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 24 Nov 2014 19:42:58 -0800 Subject: Add release note for #17743 [ci skip] --- guides/source/4_2_release_notes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md index 1ee3bfe0a4..0281213bf2 100644 --- a/guides/source/4_2_release_notes.md +++ b/guides/source/4_2_release_notes.md @@ -417,6 +417,19 @@ Please refer to the [Changelog][action-pack] for detailed changes. ([Commit](https://github.com/rails/rails/commit/cc26b6b7bccf0eea2e2c1a9ebdcc9d30ca7390d9)) +* Deprecated support for String keys in URL helpers: + + ```ruby + # bad + Rails.application.routes.url_helpers.root_path('controller' => 'posts', 'action' => 'index') + # good + Rails.application.routes.url_helpers.root_path(:controller => 'posts', :action => 'index') + # better :trollface: + Rails.application.routes.url_helpers.root_path(controller: 'posts', action: 'index') + ``` + + ([Pull Request](https://github.com/rails/rails/pull/17743)) + ### Notable changes * Rails will now automatically include the template's digest in ETags. -- cgit v1.2.3