aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-08 13:30:42 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-08 13:51:07 -0300
commit3bbc2fb9943c3f9ddb64c787ace4dda63e9a69cb (patch)
treeaa646a513518c8ae7e7f14d7b6d4a8f3944db19b /guides/source
parent9c4afcf4cd6290c127374744805dea360bfa21c5 (diff)
downloadrails-3bbc2fb9943c3f9ddb64c787ace4dda63e9a69cb.tar.gz
rails-3bbc2fb9943c3f9ddb64c787ace4dda63e9a69cb.tar.bz2
rails-3bbc2fb9943c3f9ddb64c787ace4dda63e9a69cb.zip
Improve and fix AP changelog, sync release notes [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/4_0_release_notes.textile12
1 files changed, 12 insertions, 0 deletions
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 <tt>ActionController::Flash.add_flash_types</tt> method to allow people to register their own flash types. e.g.:
+
+<ruby>
+class ApplicationController
+ add_flash_types :error, :warning
+end
+</ruby>
+
+If you add the above code, you can use <tt><%= error %></tt> in an erb, and <tt>redirect_to /foo, :error => 'message'</tt> 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 <tt>RoutingError</tt> in development.
+
* Include <tt>mounted_helpers</tt> (helpers for accessing mounted engines) in <tt>ActionDispatch::IntegrationTest</tt> by default.
* Added <tt>ActionDispatch::SSL</tt> middleware that when included force all the requests to be under HTTPS protocol.