From 3bbc2fb9943c3f9ddb64c787ace4dda63e9a69cb Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 8 Jul 2012 13:30:42 -0300 Subject: [PATCH] Improve and fix AP changelog, sync release notes [ci skip] --- actionpack/CHANGELOG.md | 4 ++-- guides/source/4_0_release_notes.textile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index a616eaa09c..be793d905f 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,6 +1,6 @@ ## Rails 4.0.0 (unreleased) ## -* Add routes to page while debugging a RoutingError in development. *Richard Schneeman and Mattt Thompson* +* Show routes in exception page while debugging a `RoutingError` in development. *Richard Schneeman and Mattt Thompson* * Add `ActionController::Flash.add_flash_types` method to allow people to register their own flash types. e.g.: @@ -8,7 +8,7 @@ add_flash_types :error, :warning end - If you add the above code, you can use `<%= error %>` in an erb, and `rediect_to /foo, :error => 'message'` in a controller. + If you add the above code, you can use `<%= error %>` in an erb, and `redirect_to /foo, :error => 'message'` in a controller. *kennyj* diff --git a/guides/source/4_0_release_notes.textile b/guides/source/4_0_release_notes.textile index b7ac11999a..895372ba63 100644 --- a/guides/source/4_0_release_notes.textile +++ b/guides/source/4_0_release_notes.textile @@ -122,6 +122,16 @@ h3. Action Pack h4. Action Controller +* Add ActionController::Flash.add_flash_types method to allow people to register their own flash types. e.g.: + + +class ApplicationController + add_flash_types :error, :warning +end + + +If you add the above code, you can use <%= error %> in an erb, and redirect_to /foo, :error => 'message' in a controller. + * Remove Active Model dependency from Action Pack. * Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping: @@ -186,6 +196,8 @@ h5(#actioncontroller_deprecations). Deprecations h4. Action Dispatch +* Show routes in exception page while debugging a RoutingError in development. + * Include mounted_helpers (helpers for accessing mounted engines) in ActionDispatch::IntegrationTest by default. * Added ActionDispatch::SSL middleware that when included force all the requests to be under HTTPS protocol. -- GitLab