Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #45 from christineyen/redirect_to_docs

Documentation tweak - add a helpful reminder to redirect_to
  • Loading branch information...
commit 28508d52a9c1fabb6fa1c7ccad1b79db362411f6 2 parents 045d9d2 + 8da9103
@vijaydev vijaydev authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/lib/action_controller/metal/redirecting.rb
View
3  actionpack/lib/action_controller/metal/redirecting.rb
@@ -42,7 +42,8 @@ module Redirecting
# 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.
Please sign in to comment.
Something went wrong with that request. Please try again.