diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 14:13:34 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 14:13:34 +0000 |
commit | 2ee84cc6f92d49ec7004d0c99d66c6feb05cee9c (patch) | |
tree | 230aa20ddf77a6a9fe3efc5403d1796e60dcd9a2 /actionpack/CHANGELOG | |
parent | 91ff8352a4e5126b934d1b26988fa228fe13495f (diff) | |
download | rails-2ee84cc6f92d49ec7004d0c99d66c6feb05cee9c.tar.gz rails-2ee84cc6f92d49ec7004d0c99d66c6feb05cee9c.tar.bz2 rails-2ee84cc6f92d49ec7004d0c99d66c6feb05cee9c.zip |
Fixed that all redirect and render calls now return true, so you can use the pattern of "do and return". Added that renders and redirects called in before_filters will have the same effect as returning false: stopping the chain. Added that only one render or redirect can happen per action. The first call wins and subsequent calls are ignored.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index d8245a1d81..7438f5a4f0 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,3 +1,35 @@ +*SVN* + +* Fixed that a default fragment store wan't being set to MemoryStore as intended. + +* Fixed that all redirect and render calls now return true, so you can use the pattern of "do and return". Example: + + def show + redirect_to(:action => "login") and return unless @person.authenticated? + render_text "I won't happen unless the person is authenticated" + end + +* Added that renders and redirects called in before_filters will have the same effect as returning false: stopping the chain. Example: + + class WeblogController + before_filter { |c| c.send(:redirect_to_url("http://www.farfaraway.com")}) } + + def hello + render_text "I will never be called" + end + end + + +* Added that only one render or redirect can happen per action. The first call wins and subsequent calls are ignored. Example: + + def do_something + redirect_to :action => "elsewhere" + render_action "overthere" + end + + Only the redirect happens. The rendering call is simply ignored. + + *1.3.1* (January 18th, 2005) * Fixed a bug where cookies wouldn't be set if a symbol was used instead of a string as the key |