Permalink
Browse files

Add example of redirect_to that uses a named route. Closes #7149 [ste…

…venbristol]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 52fe604 commit 5af446346aaa4450b3057f3c7b9abfbfd605cc4e Marcel Molina committed Dec 5, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/base.rb
@@ -1024,6 +1024,7 @@ def default_url_options(options) #:doc:
# 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.

0 comments on commit 5af4463

Please sign in to comment.