diff options
author | Marcel Molina <marcel@vernix.org> | 2007-12-05 22:07:58 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-12-05 22:07:58 +0000 |
commit | 5af446346aaa4450b3057f3c7b9abfbfd605cc4e (patch) | |
tree | 5e00cfc0edac4b739c05310ced81940be068e432 | |
parent | 52fe604da3b72ebbe4d7789917cdcb2ef68b2e6d (diff) | |
download | rails-5af446346aaa4450b3057f3c7b9abfbfd605cc4e.tar.gz rails-5af446346aaa4450b3057f3c7b9abfbfd605cc4e.tar.bz2 rails-5af446346aaa4450b3057f3c7b9abfbfd605cc4e.zip |
Add example of redirect_to that uses a named route. Closes #7149 [stevenbristol]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 379e88b9c5..0b467223ec 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1024,6 +1024,7 @@ module ActionController #:nodoc: # redirect_to post # redirect_to "http://www.rubyonrails.org" # redirect_to "/images/screenshot.jpg" + # redirect_to articles_url # redirect_to :back # # The redirection happens as a "302 Moved" header unless otherwise specified. |