From 0db8af10996d7f9f97a99c689189512205689144 Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Thu, 11 Mar 2010 22:18:28 +1100 Subject: Updating 3.0 release notes with cookie session store and secret changes --- railties/guides/source/3_0_release_notes.textile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/railties/guides/source/3_0_release_notes.textile b/railties/guides/source/3_0_release_notes.textile index 73479b3c0f..46a41f4fca 100644 --- a/railties/guides/source/3_0_release_notes.textile +++ b/railties/guides/source/3_0_release_notes.textile @@ -233,8 +233,8 @@ More Information: - "Rails Edge Architecture":http://yehudakatz.com/2009/06/11/r h4. Action Controller * application_controller.rb now has protect_from_forgery on by default. -* The cookie_verifier_secret has been moved to initializers/cookie_verification_secret.rb. -* The session_store configuration has moved to initializers/session_store.rb. +* The cookie_verifier_secret has been deprecated and now instead it is assigned through Rails.application.config.cookie_secret and moved into it's own file: initializers/cookie_verification_secret.rb. +* The session_store configuration has also been changed from a hash assignment to ActionController::Base.session to Rails.application.config.session_store has also has been moved to initializers/session_store.rb. * cookies.secure allowing you to set encrypted values in cookies with cookie.secure[:key] => value. * cookies.permanent allowing you to set permanent values in the cookie hash cookie.permanent[:key] => value that raise exceptions on signed values if verification failures. * You can now pass :notice => 'This is a flash message' or :alert => 'Something went wrong' to the format call inside a +respond_to+ block. The flash[] hash still works as previously. @@ -322,7 +322,6 @@ Produces: * I18n select label on should now be :en.helpers.select instead of :en.support.select. * You no longer need to place a minus sign at the end of a ruby interpolation inside an ERb template to remove the trailing carriage return in the HTML output. * Added +grouped_collection_select+ helper to Action View. -* Action View now will raise exceptions if CSS stylesheets and javascript files listed in the +javascript_include_tag+ and +stylesheet_include_tag+ helpers are missing. * +content_for?+ has been added allowing you to check for the existence of content in a view before rendering. -- cgit v1.2.3