mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Improve documentation around status code argument of redirect_to
This commit is contained in:
@@ -42,7 +42,8 @@ module ActionController
|
||||
# redirect_to :action=>'atom', :status => 302
|
||||
#
|
||||
# The status code can either be a standard {HTTP Status code}[http://www.iana.org/assignments/http-status-codes] as an
|
||||
# integer, or a symbol representing the downcased, underscored and symbolized description.
|
||||
# integer, or a symbol representing the downcased, underscored and symbolized description. Note that the status code
|
||||
# must be a 3xx HTTP code, or redirection will not occur.
|
||||
#
|
||||
# It is also possible to assign a flash message as part of the redirection. There are two special accessors for commonly used the flash names
|
||||
# +alert+ and +notice+ as well as a general purpose +flash+ bucket.
|
||||
|
||||
Reference in New Issue
Block a user