mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
52fe604da3
commit
5af446346a
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue