aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-24 20:39:10 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-24 20:40:00 +0530
commitbf72297d35c4ab169b2e4da9973ab5b5e3410981 (patch)
treec9c9be735ff69a8b07ba50173071c5e7f72eeb15 /railties/guides
parentdeb91690ae0883826950fa2cfb7c23944d7f03de (diff)
downloadrails-bf72297d35c4ab169b2e4da9973ab5b5e3410981.tar.gz
rails-bf72297d35c4ab169b2e4da9973ab5b5e3410981.tar.bz2
rails-bf72297d35c4ab169b2e4da9973ab5b5e3410981.zip
add latest changes to 3.2 release notes
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/3_2_release_notes.textile14
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/guides/source/3_2_release_notes.textile b/railties/guides/source/3_2_release_notes.textile
index 370881260e..a4d5ed9116 100644
--- a/railties/guides/source/3_2_release_notes.textile
+++ b/railties/guides/source/3_2_release_notes.textile
@@ -71,6 +71,8 @@ h3. Railties
* New applications get a flag <tt>config.active_record.auto_explain_threshold_in_seconds</tt> in the environments configuration files. With a value of <tt>0.5</tt> in <tt>development.rb</tt> and commented out in <tt>production.rb</tt>. No mention in <tt>test.rb</tt>.
+* Added <tt>config.exceptions_app</tt> to set the exceptions application invoked by the +ShowException+ middleware when an exception happens. Defaults to <tt>ActionDispatch::PublicExceptions.new(Rails.public_path)</tt>.
+
* Added a <tt>DebugExceptions</tt> middleware which contains features extracted from <tt>ShowExceptions</tt> middleware.
* Display mounted engines' routes in <tt>rake routes</tt>.
@@ -91,6 +93,14 @@ config.railties_order = [Blog::Engine, :main_app, :all]
* Attributes on scaffold and model generators default to string. This allows the following: <tt>rails g scaffold Post title body:text author</tt>
+* Allow scaffold/model/migration generators to accept "index" and "uniq" modifiers. For example,
+
+<ruby>
+rails g scaffold Post title:string:index author:uniq price:decimal{7,2}
+</ruby>
+
+will create indexes for +title+ and +author+ with the latter being an unique index. Some types such as decimal accept custom options. In the example, +price+ will be a decimal column with precision and scale set to 7 and 2 respectively.
+
* Remove old plugin generator +rails generate plugin+ in favor of +rails plugin new+ command.
* Remove old <tt>config.paths.app.controller</tt> API in favor of <tt>config.paths["app/controller"]</tt>.
@@ -101,6 +111,8 @@ h4. Action Controller
* Make <tt>ActiveSupport::Benchmarkable</tt> a default module for <tt>ActionController::Base,</tt> so the <tt>#benchmark</tt> method is once again available in the controller context like it used to be.
+* Added +:gzip+ option to +caches_page+. The default option can be configured globally using <tt>page_cache_compression</tt>.
+
* Rails will now use your default layout (such as "layouts/application") when you specify a layout with <tt>:only</tt> and <tt>:except</tt> condition, and those conditions fail.
<ruby>
@@ -168,6 +180,8 @@ h4. Action Dispatch
* Added <tt>ActionDispatch::RequestId</tt> middleware that'll make a unique X-Request-Id header available to the response and enables the <tt>ActionDispatch::Request#uuid</tt> method. This makes it easy to trace requests from end-to-end in the stack and to identify individual requests in mixed logs like Syslog.
+* The <tt>ShowExceptions</tt> middleware now accepts a exceptions application that is responsible to render an exception when the application fails. The application is invoked with a copy of the exception in +env["action_dispatch.exception"]+ and with the <tt>PATH_INFO</tt> rewritten to the status code.
+
* Allow rescue responses to be configured through a railtie as in <tt>config.action_dispatch.rescue_responses</tt>.
h4. Action View