aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 19:12:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 19:12:53 +0000
commita35cf348bf918c7170ff4890d25d2d48a133edc1 (patch)
treed429702b646205dd5e1c48aeef4c2c88bcf13ce8 /actionpack/CHANGELOG
parent800b86e4c7464021d07dc763c1890b1bb49dacd4 (diff)
downloadrails-a35cf348bf918c7170ff4890d25d2d48a133edc1.tar.gz
rails-a35cf348bf918c7170ff4890d25d2d48a133edc1.tar.bz2
rails-a35cf348bf918c7170ff4890d25d2d48a133edc1.zip
Added a much improved Flash module that allows for finer-grained control on expiration and allows you to flash the current action #839 [Caio Chassot]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG17
1 files changed, 17 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index dcaa5cecd4..96895a9529 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,22 @@
*SVN*
+* Added a much improved Flash module that allows for finer-grained control on expiration and allows you to flash the current action #839 [Caio Chassot]. Example of flash.now:
+
+ class SomethingController < ApplicationController
+ def save
+ ...
+ if @something.save
+ # will redirect, use flash
+ flash['message'] = 'Save successful'
+ redirect_to :action => 'list'
+ else
+ # no redirect, message is for current action, use flash.now
+ flash.now['message'] = 'Save failed, review'
+ render_action 'edit'
+ end
+ end
+ end
+
* Added to_param call for parameters when composing an url using url_for from something else than strings #812 [Sam Stephenson]. Example:
class Page